From patchwork Tue May 21 16:52:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1937493 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=YQYGKw80; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VkLCB5Vcsz20PS for ; Wed, 22 May 2024 02:55:02 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0C6BB384AB70 for ; Tue, 21 May 2024 16:55:01 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by sourceware.org (Postfix) with ESMTPS id 7F9E13858D3C for ; Tue, 21 May 2024 16:54:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7F9E13858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7F9E13858D3C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1034 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716310482; cv=none; b=kVXXk082sToqZMXCHUINjpdHeX9Dk9inzfdvJ3lBjyTlkssiBtN22xiU6YD+SSYLnZxabnWu1rN+aexnSg5Hdc7Ct0IC8ITmpgxIcKEq+nV5Sfm23iPN4dXBiRM2vZQI/0a2ZVCCoOP7JpDQ5YKA6o0v7Xw6zISqvOfjJ0KcVhE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716310482; c=relaxed/simple; bh=3A+hisGxAjTgAsewesrYDDy8b5Bkr+XQfMpfQ6Cwmp8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=MjlNHWAao2Bv0gxwhtpkbOx2GyEikLBrISlPneWqZ5zhNxF/eYR/YQkKaRFNrjb+albkcVDzCpHMMNFIRpzJjGIMlnAGlTMQb7SAAVzQklDvt9d/EAPrTlI+r92rHbn85yUkJiRf2chs9TFZPGv11s+C7VTcw9twt6zps8mnFPE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-2b433dd2566so1467391a91.2 for ; Tue, 21 May 2024 09:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716310478; x=1716915278; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=auzSUJvzCvg7yyJ2qGjqR9HEStLU83DSoa85R4sU04k=; b=YQYGKw809x7Vjw10oMuWE2dYm/YPxBYW8Q0mUIhlmCzZmdpIXoERoW3+nNTneVvWB4 PnWVgBOnqmqtJZGcdDnFz5a7lTizaw9k1yk3IiXgbRAto5xoEL9st125XjzSv6o+im+q lGQJCfdmGpM13ZFxPw0a7dY0dGbwiIvYcl5WzIJ6FMpCqNvoRHCDi83yI/71tG1S0U6M 2FIDfa//6Yoo3tXfDg23MdTiIyAOEdWAoemKaB08WA+bX5vFmjUELfR0HQ8gY7Oi6ub7 kTPYqp6gNgqXHeImfvuobQ1OaycFLMAc0RMbPFrgDURxUPb2SOFQWnWVxZbqHD3R09lH 6qfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716310478; x=1716915278; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=auzSUJvzCvg7yyJ2qGjqR9HEStLU83DSoa85R4sU04k=; b=DE5RtGUodETS7F0DaG+K/ogY36W+ftYWmCIZ+UhuSmyUF7MkwamerRmsOkAyPrOhTv M0KVaK7cCxfRGakYbJAdip/GS8rAwqdG93bsZJ18FteF3yZV7pk92LqMnybMB3tKeJDX uDiYRfNJfVWyg6eraxHrszsXkBYE0rH0hl8zD/WUwG7HjLxxnC4IawXQuYWa91Kiv1Ph 2IMATaOTNeK2lMoOLVVMAqCXfWTh8S31NUiNnTkPkRbhtU3d7Rmz8TRbjtwVo3YZZDfY xlgQ5j6+KwfMt/YLK9oge4rnc2QnjbKEHgwmq2g0YSA69g+6wKliyFVPq/dGBSuXkxI2 409g== X-Gm-Message-State: AOJu0Yw2tOs7UwnrplKQ0csKV4bvoulzHN0QW9j5V8LETDIu0Z+wkNR2 LJ0tc2KaHNbHEOotTv71rB6wln/8wtxZcxjHMxOwzw4eDTwbKx3sKiOD2rPGg+zV8/ep5hJH4Eu C X-Google-Smtp-Source: AGHT+IFDQJXI1ybJWqwkvhYJ7syKXKg5OOCSPQd9BBP1zGW6hmpuD96eu8glKIhWNNHgNXbFtp/j4w== X-Received: by 2002:a17:90a:5508:b0:2b6:ab87:59c8 with SMTP id 98e67ed59e1d1-2b6cc7745a4mr26674213a91.13.1716310477552; Tue, 21 May 2024 09:54:37 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:f76a:a4a6:1329:be7a:c724]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2bd92b3d2b0sm1620774a91.3.2024.05.21.09.54.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 09:54:37 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: "H . J . Lu" Subject: [PATCH v4 1/5] math: Add support for auto static math tests Date: Tue, 21 May 2024 13:52:53 -0300 Message-ID: <20240521165430.2998944-2-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240521165430.2998944-1-adhemerval.zanella@linaro.org> References: <20240521165430.2998944-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org It basically copy the already in place rules for dynamic tests for auto-generated math functions for all support types. To avoid the need to duplicate .inc files, a .SECONDEXPANSION rules is adeed for the gen-libm-test.py generation. New tests are added on the new rules 'libm-test-funcs-auto-static', 'libm-test-funcs-noauto-static', and 'libm-test-funcs-narrow-static'; similar to the non-static counterparts. To avoid add extra build and disk requirement, the new math static tests are only enable with a new define 'build-math-static-tests'. Reviewed-by: H.J. Lu --- Makeconfig | 5 ++ Makefile.help | 4 ++ math/Makefile | 120 ++++++++++++++++++++++++++++++++++-- math/test-double-static.h | 1 + math/test-float-static.h | 1 + math/test-float128-static.h | 1 + math/test-float32-static.h | 1 + math/test-float32x-static.h | 1 + math/test-float64-static.h | 1 + math/test-float64x-static.h | 1 + math/test-ibm128-static.h | 1 + math/test-ldouble-static.h | 1 + 12 files changed, 133 insertions(+), 5 deletions(-) create mode 100644 math/test-double-static.h create mode 100644 math/test-float-static.h create mode 100644 math/test-float128-static.h create mode 100644 math/test-float32-static.h create mode 100644 math/test-float32x-static.h create mode 100644 math/test-float64-static.h create mode 100644 math/test-float64x-static.h create mode 100644 math/test-ibm128-static.h create mode 100644 math/test-ldouble-static.h diff --git a/Makeconfig b/Makeconfig index 9fe664ae3a..29819363da 100644 --- a/Makeconfig +++ b/Makeconfig @@ -768,6 +768,11 @@ run-built-tests = yes endif endif +# Whether to build the static math tests +ifndef build-math-static-tests +build-math-static-tests = no +endif + # Whether to stop immediately when a test fails. Nonempty means to # stop, empty means not to stop. ifndef stop-on-test-failure diff --git a/Makefile.help b/Makefile.help index b49df9c5c9..17e7154797 100644 --- a/Makefile.help +++ b/Makefile.help @@ -33,6 +33,10 @@ test Note that this will rebuild the test if needed, but will not rebuild what "make all" would have rebuilt. +build-math-static-tests + Enable extra math tests for static linking. Use like this: + make test t=math/test-float-exp10-static build-math-static-tests=yes + -- Other useful hints: diff --git a/math/Makefile b/math/Makefile index 36024a5039..58e5c070cf 100644 --- a/math/Makefile +++ b/math/Makefile @@ -593,8 +593,10 @@ endif libm-vec-tests = $(addprefix test-,$(libmvec-tests)) libm-test-support = $(foreach t,$(test-types),libm-test-support-$(t)) -test-extras += $(libm-test-support) -extra-test-objs += $(addsuffix .o, $(libm-test-support)) +libm-test-support-static = $(foreach t,$(test-types),libm-test-support-$(t)-static) +test-extras += $(libm-test-support) $(libm-test-support-static) +extra-test-objs += $(addsuffix .o, $(libm-test-support)) \ + $(addsuffix .o, $(libm-test-support-static)) libm-vec-test-wrappers = $(addsuffix -wrappers, $(libm-vec-tests)) test-extras += $(libm-vec-test-wrappers) extra-test-objs += $(addsuffix .o, $(libm-vec-test-wrappers)) @@ -664,12 +666,10 @@ libm-test-funcs-auto = \ y1 \ yn \ # libm-test-funcs-auto -libm-test-funcs-noauto = \ +libm-test-funcs-noauto-base = \ canonicalize \ ceil \ cimag \ - compat_totalorder \ - compat_totalordermag \ conj \ copysign \ cproj \ @@ -740,6 +740,11 @@ libm-test-funcs-noauto = \ trunc \ ufromfp \ ufromfpx \ + # libm-test-funcs-noauto-base +libm-test-funcs-noauto = \ + $(libm-test-funcs-noauto-base) \ + compat_totalorder \ + compat_totalordermag \ # libm-test-funcs-noauto libm-test-funcs-compat = \ compat_totalorder \ @@ -816,6 +821,71 @@ $(libm-test-c-narrow-obj): $(objpfx)libm-test%.c: libm-test%.inc \ $(make-target-directory) $(PYTHON) gen-libm-test.py -c $< -a auto-libm-test-out$* -C $@ + +libm-test-funcs-auto-static = \ + $(libm-test-funcs-auto) \ + # libm-test-funcs-auto-static +libm-test-funcs-noauto-static = \ + $(libm-test-funcs-noauto-base) \ + # libm-test-funcs-noauto-static +libm-test-funcs-narrow-static = \ + $(libm-test-funcs-narrow) \ + # libm-test-funcs-narrow-static +libm-test-funcs-all-static = $(libm-test-funcs-auto-static) $(libm-test-funcs-noauto-static) + +libm-test-c-auto-static = $(foreach f,$(libm-test-funcs-auto-static),libm-test-$(f)-static.c) +libm-test-c-noauto-static = $(foreach f,$(libm-test-funcs-noauto-static),libm-test-$(f)-static.c) +libm-test-c-narrow-static = $(foreach f,$(libm-test-funcs-narrow-static),\ + libm-test-narrow-$(f)-static.c) +generated += $(libm-test-c-auto-static) $(libm-test-c-noauto-static) $(libm-test-c-narrow-static) + +libm-tests-normal-static = $(foreach t,$(libm-tests-base-normal),\ + $(foreach f,$(libm-test-funcs-all-static),\ + $(t)-$(f)-static)) +libm-tests-narrow-static = $(foreach t,$(libm-tests-base-narrow-static),\ + $(foreach f,$(libm-test-funcs-narrow-static),\ + $(t)-$(f)-static)) +libm-tests-vector-static = $(foreach t,$(libmvec-tests-static),\ + $(foreach f,$($(t)-funcs),test-$(t)-$(f)-static)) +libm-tests-static = $(libm-tests-normal-static) $(libm-tests-narrow-static) $(libm-tests-vector-static) +libm-tests-for-type-static = $(foreach f,$(libm-test-funcs-all-static),\ + test-$(1)-$(f)-static test-i$(1)-$(f)-static) \ + $(filter test-$(1)-%,$(libm-tests-vector-static) \ + $(libm-tests-narrow-static)) + +libm-tests.o += $(addsuffix .o,$(libm-tests-static)) + +ifeq ($(build-math-static-tests),yes) +tests-static += $(libm-tests-static) +generated += $(addsuffix .c,$(libm-tests)) \ + $(foreach t,$(test-types),libm-test-support-$(t)-static.c) +endif + +libm-test-c-auto-obj-static = $(addprefix $(objpfx),$(libm-test-c-auto-static)) +libm-test-c-noauto-obj-static = $(addprefix $(objpfx),$(libm-test-c-noauto-static)) +libm-test-c-narrow-obj-static = $(addprefix $(objpfx),$(libm-test-c-narrow-static)) + +# Use the same input test definitions for both dynamic and static tests. +.SECONDEXPANSION: +$(libm-test-c-noauto-obj-static): $(objpfx)libm-test%.c: libm-test$$(subst -static,,%).inc \ + gen-libm-test.py + $(make-target-directory) + $(PYTHON) gen-libm-test.py -c $< -a /dev/null -C $@ + +.SECONDEXPANSION: +$(libm-test-c-auto-obj-static): $(objpfx)libm-test%.c: libm-test$$(subst -static,,%).inc \ + gen-libm-test.py \ + auto-libm-test-out$$(subst -static,,%) + $(make-target-directory) + $(PYTHON) gen-libm-test.py -c $< -a auto-libm-test-out`echo $* | sed 's/-static//'` -C $@ + +.SECONDEXPANSION: +$(libm-test-c-narrow-obj-static): $(objpfx)libm-test%.c: libm-test$$(subst -static,,%).inc \ + gen-libm-test.py \ + auto-libm-test-out$$(subst -static,,%) + $(make-target-directory) + $(PYTHON) gen-libm-test.py -c $< -a auto-libm-test-out`echo $* | sed 's/-static//'` -C $@ + # Tests for totalorder compat symbols reuse the table of tests as # processed by gen-libm-test.py, so add dependencies on the generated # .c files. @@ -1044,6 +1114,18 @@ $(foreach t,$(libm-tests-normal),$(objpfx)$(t).c): $(objpfx)test-%.c: echo "#include "; \ ) > $@ +$(foreach t,$(libm-tests-normal-static),$(objpfx)$(t).c): $(objpfx)test-%.c: + type_func=$*; \ + type=$${type_func%%-*}; \ + func=$${type_func#*-}; \ + ( \ + echo "#include "; \ + echo "#include "; \ + echo "#include "; \ + echo "#include "; \ + echo "#include "; \ + ) > $@ + $(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c): $(objpfx)test-%.c: type_pair_func=$*; \ type_pair=$${type_pair_func%-*}; \ @@ -1078,6 +1160,13 @@ $(foreach t,$(test-types),\ echo "#include "; \ ) > $@ +$(foreach t,$(test-types),\ + $(objpfx)libm-test-support-$(t)-static.c): $(objpfx)libm-test-support-%.c: + ( \ + echo "#include "; \ + echo "#include "; \ + ) > $@ + $(addprefix $(objpfx), $(libm-tests.o)): $(objpfx)libm-test-ulps.h define o-iterator-doit @@ -1087,6 +1176,13 @@ endef object-suffixes-left := $(libm-tests-base) include $(o-iterator) +define o-iterator-doit +$(foreach f,$(libm-test-funcs-all-static),\ + $(objpfx)$(o)-$(f)-static.o): $(objpfx)$(o)%.o: $(objpfx)libm-test%.c +endef +object-suffixes-left := $(libm-tests-base) +include $(o-iterator) + define o-iterator-doit $(foreach f,$(libm-test-funcs-narrow),\ $(objpfx)$(o)-$(f).o): $(objpfx)$(o)%.o: \ @@ -1102,6 +1198,13 @@ endef object-suffixes-left := $(libm-tests-base-normal) include $(o-iterator) +define o-iterator-doit +$(foreach f,$(libm-test-funcs-all-static),\ + $(objpfx)$(o)-$(f)-static.o): CFLAGS += $(libm-test-no-inline-cflags) +endef +object-suffixes-left := $(libm-tests-base-normal) +include $(o-iterator) + define o-iterator-doit $(foreach f,$(libm-test-funcs-narrow),\ $(objpfx)$(o)-$(f).o): CFLAGS += $(libm-test-no-inline-cflags) @@ -1123,6 +1226,13 @@ endef object-suffixes-left := $(test-types) include $(o-iterator) +define o-iterator-doit +$(addprefix $(objpfx),\ + $(call libm-tests-for-type-static,$(o))): $(objpfx)libm-test-support-$(o)-static.o +endef +object-suffixes-left := $(test-types) +include $(o-iterator) + define o-iterator-doit $(objpfx)libm-test-support-$(o).o: CFLAGS += $(libm-test-no-inline-cflags) endef diff --git a/math/test-double-static.h b/math/test-double-static.h new file mode 100644 index 0000000000..d53f46819f --- /dev/null +++ b/math/test-double-static.h @@ -0,0 +1 @@ +#include "test-double.h" diff --git a/math/test-float-static.h b/math/test-float-static.h new file mode 100644 index 0000000000..7834c9e1f1 --- /dev/null +++ b/math/test-float-static.h @@ -0,0 +1 @@ +#include "test-float.h" diff --git a/math/test-float128-static.h b/math/test-float128-static.h new file mode 100644 index 0000000000..5f8206456a --- /dev/null +++ b/math/test-float128-static.h @@ -0,0 +1 @@ +#include "test-float128.h" diff --git a/math/test-float32-static.h b/math/test-float32-static.h new file mode 100644 index 0000000000..2df27d1ca0 --- /dev/null +++ b/math/test-float32-static.h @@ -0,0 +1 @@ +#include "test-float32.h" diff --git a/math/test-float32x-static.h b/math/test-float32x-static.h new file mode 100644 index 0000000000..62f78b49d8 --- /dev/null +++ b/math/test-float32x-static.h @@ -0,0 +1 @@ +#include "test-float32x.h" diff --git a/math/test-float64-static.h b/math/test-float64-static.h new file mode 100644 index 0000000000..807c174df1 --- /dev/null +++ b/math/test-float64-static.h @@ -0,0 +1 @@ +#include "test-float64.h" diff --git a/math/test-float64x-static.h b/math/test-float64x-static.h new file mode 100644 index 0000000000..a7801dbc10 --- /dev/null +++ b/math/test-float64x-static.h @@ -0,0 +1 @@ +#include "test-float64x.h" diff --git a/math/test-ibm128-static.h b/math/test-ibm128-static.h new file mode 100644 index 0000000000..b66a57050b --- /dev/null +++ b/math/test-ibm128-static.h @@ -0,0 +1 @@ +#include "test-ibm128.h" diff --git a/math/test-ldouble-static.h b/math/test-ldouble-static.h new file mode 100644 index 0000000000..beabedb817 --- /dev/null +++ b/math/test-ldouble-static.h @@ -0,0 +1 @@ +#include "test-ldouble.h" From patchwork Tue May 21 16:52:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1937497 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=lXqNisrh; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VkLDC5jdKz20dK for ; Wed, 22 May 2024 02:55:55 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1BD0A384AB6E for ; Tue, 21 May 2024 16:55:54 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by sourceware.org (Postfix) with ESMTPS id AE6933858C62 for ; Tue, 21 May 2024 16:54:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AE6933858C62 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AE6933858C62 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::102c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716310482; cv=none; b=StRbhAt345Y+s2RAGlh4X1gI5WD93fGSCIWOoWIf8fsoW3VHgB/DiTmhDJBWQfg3efeR4z9bTBbjYuyxzbZj1iLfGGzpozDXzktsahs3yzyR92hsKr/miTkX0NaElnNH7cqcCylZ579mhQD+47MiqUKkN4W0lGUHjNUkqDT9E54= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716310482; c=relaxed/simple; bh=9DGrpXFCdp2T/RJf/JhVO/Isg5Thz+BEsOe4SXuTUao=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=eoHAfTXRquQzZsjxhyqThtdHUJbwRHUXzV8Lumo9nq324qZcsLYb1cC1X24r87Ud+uhAOH4RL/eQx6S9TCkMtrJKP520IK+EHlJzRkQ9TXGO553nPa5qcxFH/wqbzE8DDJur+Y0lvUEgJOih2Aq0YbJFcLh4b0IeYNlAFUOT1Fs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-2b432be5cc9so543023a91.3 for ; Tue, 21 May 2024 09:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716310479; x=1716915279; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dNDJouFnqf0kBr+cv2DSCub2WpBmMP3kx9KkveqAi1A=; b=lXqNisrhtUfPa3joMdLF8cMoM8/yJ0KJF0HCyJ1n1HA5qPWe6f6Whfrit6g3LYEfIE wJPZ0AXzxBeUUPxD4yvv5uEyN6umfcGVA0PC0nlEbYTnJB6SCz1psGyJDoQxOS7cDzU5 SPCxeCs4qL5YGZrJ4G0B71SIQt2v57xLHUzfhSm9Ik/1vXQQrMQmjrwyKM16Sk43ONsU 8bFoLow4yjL73BO7hLQyZwxEfM5wgbpSnWPF5CV8S+iV7Pofm5c5Mxw3f4RjCP51WGmG f0y6yljhQgqyHL0fUeoYM3UmZv9h9i1CyrGYIM2ZZKn5wLKH7ro66mEZdBlHP1cqkovU ujLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716310479; x=1716915279; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dNDJouFnqf0kBr+cv2DSCub2WpBmMP3kx9KkveqAi1A=; b=TWWiFe90cypXKE2kkj03HY3bgcJO6dmbJh6X0IO4+bfJ6LpRiOo+qf6x7+ZdmohU/q w7V8g3kI7c9Lk/wliLoCF5HZRFcJuTfFEfnRIdfBhch5or53/kbnLfmRjZLFs/IfQ3iA sBlJ5foLIii2Dx1Xpf6sC26T7n4ls0ut6P1KyckBjPkZgQkkW5d+MuyoJjbj3ZBePY+t nLF/gXRogiPqX5w7DZJmJt3JLCzzuJOFne4Rv4vp3AVT855Me+GOkZH5PgzOZF+FTSd2 y45InTKyAK9xkfjG4z/9M/70gmg0CTq3eFNW7CY6FaOEBWDLRyOLOSAWYkcuv6EQCRL6 OcfQ== X-Gm-Message-State: AOJu0Yzw0fJ87Dt86dHB8xQGQzmZbodJk2LTY58bENQ5SaUfWI/ersMw 1Dhx9fqZj+nlZwppmoTnMOjuQQ1ocKQqpiIY1WhZecW8iBNs3t0Shce2Y4ACu94DsB28YUBCoE2 A X-Google-Smtp-Source: AGHT+IHUbi3WAn3e9etgbhJWpmWb/lyzt63dyZMq2qJhAPZiSsqmaDc17TMOMGGv+l39Te0QsoH4XQ== X-Received: by 2002:a17:90a:d345:b0:2b3:c011:d28c with SMTP id 98e67ed59e1d1-2b6cd1ef673mr28700409a91.48.1716310479229; Tue, 21 May 2024 09:54:39 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:f76a:a4a6:1329:be7a:c724]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2bd92b3d2b0sm1620774a91.3.2024.05.21.09.54.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 09:54:38 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: "H . J . Lu" Subject: [PATCH v4 2/5] math: Fix isnanf128 static build (BZ 31774) Date: Tue, 21 May 2024 13:52:54 -0300 Message-ID: <20240521165430.2998944-3-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240521165430.2998944-1-adhemerval.zanella@linaro.org> References: <20240521165430.2998944-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Some static implementation of float128 routines might call __isnanf128, which is not provided by the static object. Checked on x86_64-linux-gnu. Reviewed-by: H.J. Lu --- sysdeps/ieee754/float128/s_isnanf128.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysdeps/ieee754/float128/s_isnanf128.c b/sysdeps/ieee754/float128/s_isnanf128.c index 59f71533ce..b73a4e80d7 100644 --- a/sysdeps/ieee754/float128/s_isnanf128.c +++ b/sysdeps/ieee754/float128/s_isnanf128.c @@ -11,7 +11,11 @@ #include "../ldbl-128/s_isnanl.c" #if !IS_IN (libm) #include +#ifdef SHARED hidden_ver (__isnanf128_impl, __isnanf128) +#else +strong_alias (__isnanf128_impl, __isnanf128) +#endif _weak_alias (__isnanf128_impl, isnanl) versioned_symbol (libc, __isnanf128_impl, __isnanf128, GLIBC_2_34); #if (SHLIB_COMPAT (libc, FLOAT128_VERSION_M, GLIBC_2_34)) From patchwork Tue May 21 16:52:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1937496 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=OykDxkID; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VkLDC2gzYz1ydW for ; Wed, 22 May 2024 02:55:55 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9BBE53849AD5 for ; Tue, 21 May 2024 16:55:53 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by sourceware.org (Postfix) with ESMTPS id DE7483858C66 for ; Tue, 21 May 2024 16:54:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DE7483858C66 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DE7483858C66 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::536 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716310484; cv=none; b=ITwuFdHqixliDSV1s0mERCeYYQ9m38U7bcN74HHpJlUXe5O+qVCAcvJi2UHWgd2yXVIU1HeHmypKDNprs38SQSeNzYm/QBAJEai2uO2yH2NVrdSgq0jRVwcL3IdlvLO8Eq8cc1t5YMe9gMl/NnfYc9JOKOhrxGHz3HG0YTjLm5g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716310484; c=relaxed/simple; bh=x9NS9J9bYVEPKTFmA1ijAZCdzPrQTMpL7CPRs+eXUFo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=nNI5b5PPAb3hHh8YY6nKxG67rDiMCBG7ONJjZFO3jdAG4kUdytUvvFpopHzhZv1LsBydspjcHkio7ymeQdPV2quhgEq2TivNVs32E0aVMe1MVWNk8XAL51X+ANAAqY5WdIPGykIWHtCkBoWRg/bbKkj6oVpazlhsi9nbev8emcA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-60585faa69fso18541a12.1 for ; Tue, 21 May 2024 09:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716310481; x=1716915281; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=C41n9v6Xn3v+yA51x92IVYFYCcho3J+Bxq3Q6keiguU=; b=OykDxkIDBNH9Xu05+nXWMhdvb0+X239QuRdpww+taSdXB7P+eGVlmHnwol2VK1pUkc hFZshQxJVfqNwr46OyK6XiDeKVjNh0K0nFHvpImxB1wr/PzlkbBcpNSJnrT8NBzf8K0W J0XOi6r5pjPOiB+yiwcnFZveAhODX4ZlSM2dLoe4ftwNt/0n0s02Co1QX3FmYt9qCfmQ RpV2j3vfepkFo1fvQnW2H2mGFf2o+HAQ6l+z2QSN5urSHxjuUbVthgyEBV0SSuV/l4Ti VfRIxI/5/Vab0D47LrDjRVD8+1CVmbwnSmAafdDAVJnkvvaliVG6A9T89lIMiQ6VfUMN Wu/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716310481; x=1716915281; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=C41n9v6Xn3v+yA51x92IVYFYCcho3J+Bxq3Q6keiguU=; b=ExAy4G2yQpyCZx16xFAAxxXNaER59v6FjBBxpg011U88hS3/xwrkhuIuGu1Y4eX1sU wUxf6WMyebKGq4/G5vnY+klpzlEVXHxASxzIvXN/SFIdiLUyY/bWEMJJiAfIDe2eFTqq EcW0sg69X4+sdGcP9PZ0jF6eyjxyUlJ2pu/cWXn3NFSRdoPtW4LOZEbfzer+39g3Byo9 d1c7RRwjxODh72T90XiX4N5H3ruVtAYW6LQGuDPGCSWsonp/b/GUWv6LloS50M8A6z2P TGAEK2UY6REHe6+PdcFPAqDJaxh+sjuk0dZgAF7thPW5GQwgTNhhK26I0SclOWOKAzJY Mlzw== X-Gm-Message-State: AOJu0YyeWj79VXBOnNtsfhX40GHvNL0TAbRF8pvbx2wf7/XhhHlQtz2p iecRMdf17GD4Uf1CIAN8ImqBkWg5AKVkjXt+jLGJhb8JJq6xV+KupzgXLiYPHRAUCqMY32RSa2x k X-Google-Smtp-Source: AGHT+IGTKmiymr5VjMlHUP3vJyv1L9MCdIVGe/dmC2526GgSSXuNjQKzxi4EnbuJGdL2zdaYqBRINQ== X-Received: by 2002:a17:90a:408f:b0:2ad:f3c3:540d with SMTP id 98e67ed59e1d1-2bd6040c272mr12918662a91.21.1716310480853; Tue, 21 May 2024 09:54:40 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:f76a:a4a6:1329:be7a:c724]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2bd92b3d2b0sm1620774a91.3.2024.05.21.09.54.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 09:54:40 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: "H . J . Lu" Subject: [PATCH v4 3/5] math: Provided copysignf128 for static libm on alpha, s390, and sparcv9 Date: Tue, 21 May 2024 13:52:55 -0300 Message-ID: <20240521165430.2998944-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240521165430.2998944-1-adhemerval.zanella@linaro.org> References: <20240521165430.2998944-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Checked with a static build for the affected ABIs. --- sysdeps/ieee754/ldbl-64-128/s_copysignl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/ieee754/ldbl-64-128/s_copysignl.c b/sysdeps/ieee754/ldbl-64-128/s_copysignl.c index 11b42d04ba..80137847d3 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_copysignl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_copysignl.c @@ -1,10 +1,10 @@ #include #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED # undef libm_alias_ldouble # define libm_alias_ldouble(from, to) #endif #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED long_double_symbol (libc, __copysignl, copysignl); #endif From patchwork Tue May 21 16:52:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1937494 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=blU3RI8s; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VkLCd5br4z1ydW for ; Wed, 22 May 2024 02:55:25 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0A64E3849AC7 for ; Tue, 21 May 2024 16:55:24 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by sourceware.org (Postfix) with ESMTPS id 4BAEE384AB55 for ; Tue, 21 May 2024 16:54:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4BAEE384AB55 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4BAEE384AB55 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::531 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716310485; cv=none; b=YNbrKXUfDYA6ApbTThmkRPLMoPBCtqQW0+ToHwcQJwyFrzMIvGpUyDWMD7GZlgfyHX69QdyB6XL4Di95iD1wM+ecIphbZadMR8URTVsmE/e6LM/GiPu9jmCKRK/szc6Kw0/Kk2TcinVxSp56mnDb9Lxx17ZRiMOw//ur9SWammE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716310485; c=relaxed/simple; bh=WLbRiVmp/GCokD+zAJhAvqwbQyM58Ra2P5BXJ9ACfhk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=WARf+AX6gvWZsdZgKMOr7tsJwyAyzSo1B5q0u6vyViqURTEECw7jIAwG1/LNcDavN29tDTclnqeD2Bf/dI3llgF1NrnfsKM5ivzhfw82ADW8Rh6RGK+eiqvoIkdFBu9xYYyL4OUUJVhuNnDmuvgk4wzqMlpuYjWQ31dvhvrNPNI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-5d81b08d6f2so402890a12.0 for ; Tue, 21 May 2024 09:54:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716310483; x=1716915283; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dCM+iWsltJaZevjRhcY12ZQMZd+kwM6t9YnpYYRh0n4=; b=blU3RI8sNMijM1TawfndznsNoY/K2hJ+mJWe0t49Lod9+2czKXs6ARE0uyWxzKkAQA Rq7lpFTTfDh/yzuIdwyQLzAyxO/GqVzg4c4eLmzn2yTm0QTntD5JsKYxU6fCdvaXxqb6 MZdfKYTYpKZbB8pyeKL6nvm5Rn+n/gf9LVdCJ8vwZtIjiNGs9cvFdGxka5x4d3MczwIw gDJa/zxPWsNfQIkZOhzOdwZCv3J8EPv/5kpthjGpcWaNp3K59zj2Ibhj0WtXd0yRXrhe 6+aQjqevkclKq8QfY13wzDRi3djOuVaDj5u1lkrIaFpuq1Lt5q74W7lxkdRQvx1zpjbS oFMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716310483; x=1716915283; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dCM+iWsltJaZevjRhcY12ZQMZd+kwM6t9YnpYYRh0n4=; b=Hppv1Sv1jd5LP8bzvwfmV67gNdAU28m+upAD+5hFS0zVe9Si853EfMQop03+Uj8RtC 2A0LXboeJkPsk7mkmIMVlU/PHUFGXp0geAaKETER405Wzi2UVSEhGw1B4Ngbwd/6elsL p6/YqPmODIlQpOnu0u3ZBhbflXGfpyr/PPgui0CXIJm6a5xHlm9XE5MicAXu2kDTeCPC Y8b12XOV/sq+vKztwNWz/z520ErZMqN0kMHo3oqQuD7C940msjtP9ZTfUrgs5PeY38kZ zwOQdZuSpuR9SvjzfFZfW8H06dEZRzScvdZHM8plbEHI1cH5G68xIKoBylw5BvhStlP0 RV9A== X-Gm-Message-State: AOJu0YyIUv0Tv25gFWY70UA0sJ0HFyx9GWMIGN1eRgLM8+/Pf553/RA+ p3ly8O52mNhhgumzJac9Zepfia5GzQD41mi62v4l0YJvL4FydPhfBYeT6XShAMIrEzqZX1v7mNX c X-Google-Smtp-Source: AGHT+IESDsKkDkkTRsdMBprxQPAs8ydqA1zvu6jEPg2rmEDK8pm8jZEcUB9X3Oc2bPMXHFSFBHY30g== X-Received: by 2002:a17:90a:8c83:b0:2a4:e9d:9888 with SMTP id 98e67ed59e1d1-2b6cc452f7emr31317608a91.16.1716310482706; Tue, 21 May 2024 09:54:42 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:f76a:a4a6:1329:be7a:c724]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2bd92b3d2b0sm1620774a91.3.2024.05.21.09.54.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 09:54:42 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: "H . J . Lu" Subject: [PATCH v4 4/5] math: Provide frexpf128 for static libm on alpha, s390, and sparcv9 Date: Tue, 21 May 2024 13:52:56 -0300 Message-ID: <20240521165430.2998944-5-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240521165430.2998944-1-adhemerval.zanella@linaro.org> References: <20240521165430.2998944-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org hecked with a build for the affected ABIs. --- sysdeps/ieee754/ldbl-64-128/s_frexpl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/ieee754/ldbl-64-128/s_frexpl.c b/sysdeps/ieee754/ldbl-64-128/s_frexpl.c index 73ac41e40c..f5f7d349f7 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_frexpl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_frexpl.c @@ -1,10 +1,10 @@ #include #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED # undef libm_alias_ldouble # define libm_alias_ldouble(from, to) #endif #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED long_double_symbol (libc, __frexpl, frexpl); #endif From patchwork Tue May 21 16:52:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1937495 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=s1JrZSwg; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VkLCg48F8z1ydW for ; Wed, 22 May 2024 02:55:27 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D4C31384AB55 for ; Tue, 21 May 2024 16:55:25 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by sourceware.org (Postfix) with ESMTPS id CC7AF384B112 for ; Tue, 21 May 2024 16:54:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CC7AF384B112 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CC7AF384B112 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::52e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716310489; cv=none; b=wa5Zym22YHsMxIx7ELp6zCigf7Duh8dm22aw39UHQMCETGQ6xMG2SNPCyvd6RS9XEg7kXx4XbRyx55sRFsDOLgq3CRxLktCppY3CpVao02Z1sgWZuUI9pPczLpwuX2lVZX83YtMNj8aEg8ALbZ96WTxzeZNAGIuub4OpIfXHFwg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716310489; c=relaxed/simple; bh=gaLcIrWTSrN9Tgq3XWWB2mDXu5iCn2DDDVgg2H/+4ko=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=GU+X/xXXubVIWH6rrCb3BoJrUZZtKBP8Ht9SN5sbUgBhDP12u0TChvcGT9TUqAynDaBIJApVeqpk0CtEWLKGLpe6ddu3p+NGDmX201OV3wpfW/vhm4VdgcE9qpIlSlv/e6Y53TvTvMQITetS9VOxygebguVWnqy63AclHeHr8o8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-602801ea164so473029a12.0 for ; Tue, 21 May 2024 09:54:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716310484; x=1716915284; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9wocQMS2wCPfFT2qO+A3QpXKfKTqZYI7P+wPtfpXK4A=; b=s1JrZSwg4UGxccER/5LkRE5KQ/C9sChmRk2xS6hPduXpPU/oSxaDyGlsWWmVFlbm1c 2vmDm/GXGdpJ2cl6vJeKI58aUxnjXVsdE+1dPLCeyktqFc3wSwjI09vT1czN6yCsgQ3l O5JA23Jhe4eyJh13iIUxfuhS0YDzOl+wDcTO9KxUQdwWZ+Lo7Z7UxWW59NfP3BXLxh3P AWa62N5SWfmZCNANOki0q+PFmWCqQIny0ZP/QuDtNWd3/KxAKAO8u+jNUnydeP8fgNc+ 0rBw19hFnqZqXLYHfyp4DQoNzoHtIGSf5xmTfCntR5ZlhMq8SZPyFHQ7m/wof2xJ4gJE kFlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716310484; x=1716915284; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9wocQMS2wCPfFT2qO+A3QpXKfKTqZYI7P+wPtfpXK4A=; b=qX1mWfYZhQUK6SPsSykpRkKMRuO2SbVs3oNZiXPEpRcazabEIRXtIvN06XvGZYJ7ht W17H7Byl9Owl1vClluiu7mmJkt2F3b5W5mnLDIq40nJbMwfpTqxkSldN8mR0emYPNtgW yUKB3E8GrHxDEhmOLhKieXLNoaJ2WDliVIB3UQEbIf+HOBXhALTrZZqU4NN2jPAbVyiz kN4zN55VQu5eVjJlt6epMhhUr4en6b4gtjARqdWyQvzYFLjjiQ1DDm3UWBRtushDgPrU 0iFpzpCWLTGLwZ++nztuTzJhDHKliD/sxt8MVdRE0nFTd1R5argQHNPP+un0u7xIJ3ZN CRhw== X-Gm-Message-State: AOJu0Yyzl0YPoEpgh8dqfQqXwjCl7MNzARq05XEX1NfUyPDNFLlFq6KS eh9Ne3/rI01teB7X87zGJXpwhMmgyY7EN+59gLzCjC3z3/aUxynWx5lCukNiEOXWjLqCYedhoa6 I X-Google-Smtp-Source: AGHT+IHsVVrSXKeU33O/xRk4sJ5XoqC2n66yundPeXnBut2k0S7Og1tziPq0KNcuPU/OVQV4Ym5tbQ== X-Received: by 2002:a17:90a:ad86:b0:2b6:22bd:f4b2 with SMTP id 98e67ed59e1d1-2b6cc03f435mr27246031a91.4.1716310484397; Tue, 21 May 2024 09:54:44 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c2:f76a:a4a6:1329:be7a:c724]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2bd92b3d2b0sm1620774a91.3.2024.05.21.09.54.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 09:54:43 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: "H . J . Lu" Subject: [PATCH v4 5/5] math: Provide modf128 for static libm on alpha, s390, and sparcv9 Date: Tue, 21 May 2024 13:52:57 -0300 Message-ID: <20240521165430.2998944-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240521165430.2998944-1-adhemerval.zanella@linaro.org> References: <20240521165430.2998944-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Checked with a build for the affected ABIs --- sysdeps/ieee754/ldbl-64-128/s_modfl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/ieee754/ldbl-64-128/s_modfl.c b/sysdeps/ieee754/ldbl-64-128/s_modfl.c index 7d7aeae111..ba3d31334a 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_modfl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_modfl.c @@ -1,10 +1,10 @@ #include #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED # undef libm_alias_ldouble # define libm_alias_ldouble(from, to) #endif #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED long_double_symbol (libc, __modfl, modfl); #endif