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: 797967 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:92:b0:351:d90a:5487 with SMTP id m18csp78609wrx; Tue, 21 May 2024 09:54:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQGHFrSQAGNyHW2GXAoRGznl1xwjFV+r+QIc+69y6EYI0r+pYTLlYYvogTfweZXDnj9X5nW06DkY1lFD1epcO9 X-Google-Smtp-Source: AGHT+IHXjBLrjla4OECw2NEPZwI3YBBcRNkR+vXptPP5C+gk8EDMeQ+6GxX0mE9AqA0zr/qoK8cb X-Received: by 2002:a05:620a:1006:b0:794:70cb:8 with SMTP id af79cd13be357-79470cb00b8mr1021534785a.40.1716310492885; Tue, 21 May 2024 09:54:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716310492; cv=pass; d=google.com; s=arc-20160816; b=axZWuXCJJLwzWlU1WSQGn/AgM1JmAXXncx5rAefnXdn2Gb+ltmlR1FwtOXsbWe0Zfq zk5N0zIHK4zpEmsVBzp4EBmK4Gcz9tcdY9A3LWHm/nq7YX+42JY8wS1qz6Mx4MB0cuW+ 1tMORQam1DX60OB2B9njCVDmt8Ye6RDSm8pZVphNmezk29c5ep9ubX8f4ZXY/nohapla 9VdXPS8NA10BJvOIKT1SHM2j/rAWGPU1NBVwJ7gz8iW0Y632rJuo9fgUEMQXJ0s3xFju 3qL6Xb56G6ZzQNKcIadeks8xbTxceUfXcclowisT/XeTnlYTMdnYNruM6mbZv3ZNlRkF +0Sg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=auzSUJvzCvg7yyJ2qGjqR9HEStLU83DSoa85R4sU04k=; fh=+6orIzRLXQY2FWXAtGF+abYflc8V+YPKzsYFuX0DJM4=; b=VVL4NarkGMbAqSeMnnOUwy3fkabLeSgzfzpm6+aDn5S0qlYSVFzWALdb7SbcEYeE7O 5jk1AH/hjay9/N+cQ9s5nrHhgh2wTAw5goEktuUk+Yw3wBldoSFwPwrTmdws7MOvxScE op6DqNS1XBdvhOuA9QDVWjH61QlNCAsbkg2EXex8ftJvEd6FZr8BWdF07WG/aX02pNL9 0uuol+ae7ev/SCjjUgISoDevyjYwStaYH1uf1sX3XEF1t+lLwsLJuPTHIN2y99U9Jn0o Wb+Evhzt9gf9MV7oAJyUZo5gS5Y6lQUDscsLUQ5S1vmQ+CAAEE/UDEP6+F24qx0CPmWx NVgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YQYGKw80; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id af79cd13be357-792ed3a1557si1721091985a.656.2024.05.21.09.54.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 09:54:52 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YQYGKw80; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 82C25384AB76 for ; Tue, 21 May 2024 16:54:52 +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-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+patch=linaro.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: 797971 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:92:b0:351:d90a:5487 with SMTP id m18csp78930wrx; Tue, 21 May 2024 09:55:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJQ30922ohDUt7wmnkVvOYN2Kds/p2A/oJe6A6gf8AFsyPp4jW1WLRW3Y4PSJZpL4Oj8sphih8c5QSwlrz9ey/ X-Google-Smtp-Source: AGHT+IHl/w+SHwZDXFsb+aPSYZR+T8gQ1R1zV1xwnOsm16Y8oW9KXMt2VtPIGseRNp6EVMbsP/NI X-Received: by 2002:a05:620a:14ad:b0:792:c199:d318 with SMTP id af79cd13be357-792c7573f36mr3619634485a.12.1716310546882; Tue, 21 May 2024 09:55:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716310546; cv=pass; d=google.com; s=arc-20160816; b=IcSs8BoKsaTOD1grqzneYf92mCKTJmcCqzhHCse0H7+wOPGdLDm7I61k1w8Uthd4ct vjpA63pmD/tSibU05sR0B+Q0LghQzqTNH98PMp89POIfhPS7EP4Vn85enEfOtqiOEiSq 53/N+bqvqISr9tM/hHkVhl3yyng2s+DoqigwwFBhi4B/CaTWS5XsdlUNerl/j693Wfe4 mPPQ2ywf7E7x7JazvT7BteVEIn4q1V6GaEY00SFJKOPb6Ha4Xn9TewBrxoal/Mdatf9s //Ov3GVeqMp8in+ly407ossk+hrNNA+FFde4bKRdTSIwBPcPQIOanWP4t26sJteihx6j CASg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=dNDJouFnqf0kBr+cv2DSCub2WpBmMP3kx9KkveqAi1A=; fh=+6orIzRLXQY2FWXAtGF+abYflc8V+YPKzsYFuX0DJM4=; b=QddAXRGpGTCSp5B8wqXg+W6J8FjSc7nbW0n/61r0IH+pqz2TVxxmtcvfOm4KcRamSP BfvOVVAmpoGkfpq3ktmGgbRXT+iYGh0wvdfqcOVD3vvKWAEuJzGptEyhff0PxU4IK3lO vgDrSD3IxdhmBReFmebqc7RuGTidDDhj+5MI6FgQbTTVUb4yYGgV6jZhS78SzWwwD2EE +jFNCcJhJAKo6PGNJcvwXD0vQsT49mX9Lyq+L/Efmbm8aoPwMETvArtDCLYZBecLDtKq v9XszQ7/hdcyncHo+Y8uLtJzB0NQuMtsVi+B7jVWIknf3CzvRUgWuGeXm8WzEFSX62xF +Jsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lXqNisrh; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id af79cd13be357-792bf278974si272592385a.74.2024.05.21.09.55.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 09:55:46 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lXqNisrh; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7DDD1384AB63 for ; Tue, 21 May 2024 16:55:46 +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-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+patch=linaro.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: 797970 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:92:b0:351:d90a:5487 with SMTP id m18csp78926wrx; Tue, 21 May 2024 09:55:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKEJ5nqnoaArHFoSfrdj78WcODQzqUNCLnSumM01K2I7dpJlXlOrPKovgHMN1g3lGdY+sgoY0tgJhPoSF2Cenn X-Google-Smtp-Source: AGHT+IGzgxmY3/EvpG/XArFXHc1vayE++poxr2gE6WzKWEypGwGUy0gAV8vw0oz9yV4nXOMy6x/5 X-Received: by 2002:a0c:ac0a:0:b0:6ab:7b32:1121 with SMTP id 6a1803df08f44-6ab7b321304mr5210586d6.6.1716310546466; Tue, 21 May 2024 09:55:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716310546; cv=pass; d=google.com; s=arc-20160816; b=N/k669nNzAyLYtHC5A4fczdLzGa83b9ehtVterdg2Soc6ktCP3V/VulAJ7Dv8MTbiE Brc5LjjOULE9JkQYsp7ZTcqb+dIkqI0GO7hcYoQyIsbHOOaObsNX+Wy2+WhZ9jIHUb8E u36etGw3Bm5M6pHCesDPD4K7slK/mhjA0soqlGCBsc9DtFcCzldUx01e0/axt/4GYK4n 7zDOLpY4MR6NB4HHLyBvdqJxC/ukejuA7Yt40XALkO2KCSnYDYiZNCGYK4b7aTRw8sZi /hzaSlD1sihR9xfTGUhRAoPJoH8vbjmrFdx0UUl8RSkFBiFPzxD4zw7WsQ5CmxjyWKEr 8L8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=C41n9v6Xn3v+yA51x92IVYFYCcho3J+Bxq3Q6keiguU=; fh=+6orIzRLXQY2FWXAtGF+abYflc8V+YPKzsYFuX0DJM4=; b=ZWupfD7DZrn3DORyECNwUIZiMBPdElPrUVUcNTG3tr9Xl1La9n9yBircOPGlS6NM4W LaV+7VShbdV/jQHeyeXo+GT3szWnE3KJkqPXe2b+l3QAIBWmIuqhwpOYTnqsrFpn7vfO 3v2dpIUr7WVQi8uz4bGNB3x34yI89fFNnGIBx/nR6vDMtqCdGLOlcGWMGOeXn7l28mQ2 z95l3LbrU2DKXewzsGfKKqiBPG5lfaf+CypmMDalCqz5lnurgKw2kNHwnPbCisL17CkE MKT1EcjYe7oSmQb1fuclSO9OYHFHdBTu8Qd1iF/wVPVsEYmeNROdtIXm72IppWDusDk8 cYwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OykDxkID; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id 6a1803df08f44-6a3527d2171si10360546d6.153.2024.05.21.09.55.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 09:55:46 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OykDxkID; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1EC563849AE7 for ; Tue, 21 May 2024 16:55:46 +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-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+patch=linaro.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: 797968 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:92:b0:351:d90a:5487 with SMTP id m18csp78740wrx; Tue, 21 May 2024 09:55:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5gDx6j4tgtVj1U21xdOTY825H/yTDIvU4yC38iRToBA+Q0eh+yGGjcVIPPgCBBhr5kgTZrFG9Azfez/Gp12qh X-Google-Smtp-Source: AGHT+IGiqOEmCLt1gp6Ph/q1A3SH0T66TbxHQmTdsM+UwWeV0izkFbOVYwPawAXEWjfw/z/Phl1h X-Received: by 2002:ac8:7d15:0:b0:43d:f0e4:65ef with SMTP id d75a77b69052e-43dfdb0a2c7mr325623581cf.4.1716310517300; Tue, 21 May 2024 09:55:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716310517; cv=pass; d=google.com; s=arc-20160816; b=ofKAF3oB4kK3hCbeAmWKdQfd33vQbeawgnOw9x/JFDNpdQymzQeTKQL4dHX8+JqurI JaMznE75mmDUxXHjK5RCMQtQAdWB7TXU0RdnY8ICHwLTm15juDrMy7eppLtnve/I292O TZc2djmvQkA5eoI7aKUH+DwqANbhMp7xoTFYIKTGq+6ZvNTuzNNHnhPAWONSSD6UTPuF d2CzESBajJWV8JZ0aYWl1RKRQR6O+fIw85oVvx/4YjeXrcxlQRtRjAvqsokEyBpS2lox cHbUehsl1T10CZr7NJ9WxGjrMM7BigSQrXPoUTscLcCyrOdc/ElPMbJsoFI/Yo0VTRuq I02w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=dCM+iWsltJaZevjRhcY12ZQMZd+kwM6t9YnpYYRh0n4=; fh=+6orIzRLXQY2FWXAtGF+abYflc8V+YPKzsYFuX0DJM4=; b=VREOYDUT+JMjUBd2RUZ3K3OfedD5bolovLnlV7RbXs4uzqT8k6KwpRWjnV6zKYY4PQ mr/o/VIQAsp3JA3bp2kaCItRkcuLU7JB5/R/fOoL2o4POqQdlzXgO5MFtNhI4+ETLYpa 6j4UVCujwUJLopwcZnCb5rhHl2LEb0vEHy+XagEBvH0gTAum5wKZhGWY/69CsD3qHj52 fvqm0y4KB85UUYmDsnHOsXgh0LJqomX1g/jo8pE6jJA4hNzOeF1f6lRy6Ii9tpfKJSJD jB2SI6rQQTLBldjFFP6Fk51g9/FCi8GU0osILjJtubmKWRFdfqLSQkQRculhO92nmckU MNwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=blU3RI8s; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d75a77b69052e-43df549d485si126376721cf.102.2024.05.21.09.55.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 09:55:17 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=blU3RI8s; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E5FEF384AB7C for ; Tue, 21 May 2024 16:55:16 +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-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+patch=linaro.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: 797969 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:92:b0:351:d90a:5487 with SMTP id m18csp78759wrx; Tue, 21 May 2024 09:55:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgSY5X8MBKEsrChW2z/o1vfct75sw/vDlMzKEyac5QinTn5NHaLreOWHqkzp3YiHSs16AdFzTLYQi+yMMWmDje X-Google-Smtp-Source: AGHT+IGEu7t+G+x7phhk2iSQG23K4UGoO/aMWXU/f6pTWmYKZd26OUwbPGS+z2bfnKr3bIWsaWbE X-Received: by 2002:a05:6214:3f87:b0:6a8:ff23:aa0a with SMTP id 6a1803df08f44-6a8ff23aa5bmr103693776d6.26.1716310520512; Tue, 21 May 2024 09:55:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716310520; cv=pass; d=google.com; s=arc-20160816; b=OLVAYKIsyyfhTXzysR9K3GKMqY67LQOt6vVKY/ZvpzginEkCHIa6LFJZdBq3CJCAB9 NjEl4scO/4ZDKCaYIQC/Gfthj3x6SZ/3YJ1pHZZO1vXfs6WAT6ODwpVetr5UeEyhfhls N4SyuZ4ZWwCeuJb9zz5Ogpl5BtpRVF9GkM8HIq9u414CEse9xs14vYTTZmZs1D9JS4Wb KPmGOE7wvR2knL6BdxEN3i81TC3A63S2wCrjNW0tE5oHWRLZTYFMeynMTKk1+o9+wh2H FJQBKF7KM/KBJ44v/SER2WcWqEtp/C7/rX0GpF8GjWPTEFZ4V1GmOO1MV9CLtuXlnoCw gjcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=9wocQMS2wCPfFT2qO+A3QpXKfKTqZYI7P+wPtfpXK4A=; fh=+6orIzRLXQY2FWXAtGF+abYflc8V+YPKzsYFuX0DJM4=; b=OMAZrGfJn58CJx52Y73hEnioIthND4it3CoskXdgdpbMrVJ9JLThaF5LAV49PBPBhT TzePBsBXFkYWy6cH7MSwJrlcRCrQ9/B7Tv27BFm+SfvYlC4UfFVi66NCgCsLs9g2ym9T RY7eMbPZ5ZOOBQTTR7U9VChdf++ZmTdKcKCMJ6Hlx4qNTAwRx4afyT2iWkE+yLUEU1z0 Rl6QWLwDzeRzxFQ2fSxZPhTJwPHDOK4YctDxqjbCk1rij6vemAkjSbo3ibg/3CVtV2Go E/bp/Xy3p1dOZQUim6lAOoIpOBr0o0Rqp7GrB/9W3Uq78RV3eMGGia8n2VxIwvVI1Okj qNyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s1JrZSwg; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id 6a1803df08f44-6ab7ac4763dsi4253216d6.358.2024.05.21.09.55.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 09:55:20 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s1JrZSwg; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E7AB8384AB77 for ; Tue, 21 May 2024 16:55:18 +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-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+patch=linaro.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