From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2012) id BDCA0398EC33; Wed, 23 Sep 2020 14:12:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BDCA0398EC33 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Arjun Shankar To: glibc-cvs@sourceware.org Subject: [glibc] benchtests: Run _Float128 tests only on architectures that support it X-Act-Checkin: glibc X-Git-Author: Arjun Shankar X-Git-Refname: refs/heads/master X-Git-Oldrev: 3322ecbfe29a16e74c4f584d661b0b8018bb4031 X-Git-Newrev: 03e26098b174abec1158a9ed9352a45a3176ef7b Message-Id: <20200923141239.BDCA0398EC33@sourceware.org> Date: Wed, 23 Sep 2020 14:12:39 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2020 14:12:39 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=03e26098b174abec1158a9ed9352a45a3176ef7b commit 03e26098b174abec1158a9ed9352a45a3176ef7b Author: Arjun Shankar Date: Wed Sep 23 16:11:57 2020 +0200 benchtests: Run _Float128 tests only on architectures that support it __float128 is a non-standard name and is not available on some architectures (like aarch64 or s390x) even though they may support the standard _Float128 type. Other architectures (like armv7) don't support quad-precision floating-point operations at all. This commit replaces benchtests references to __float128 with _Float128 and runs the corresponding tests only on architectures that support it. Diff: --- benchtests/Makefile | 6 +++++- benchtests/expf128-inputs | 4 ++-- benchtests/powf128-inputs | 4 ++-- benchtests/sinf128-inputs | 4 ++-- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/benchtests/Makefile b/benchtests/Makefile index 3095076055..922e2a94b1 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -25,7 +25,11 @@ bench-math := acos acosh asin asinh atan atanh cos cosh exp exp2 log log2 \ modf pow rint sin sincos sinh sqrt tan tanh fmin fmax fminf \ fmaxf powf trunc truncf roundeven roundevenf expf exp2f logf \ log2f sincosf sinf cosf isnan isinf isfinite hypot logb logbf \ - exp10f expf128 powf128 sinf128 + exp10f + +ifneq (,$(filter yes,$(float128-fcts) $(float128-alias-fcts))) +bench-math += expf128 powf128 sinf128 +endif bench-pthread := pthread_once thread_create diff --git a/benchtests/expf128-inputs b/benchtests/expf128-inputs index 5b36f8672a..5dc0f4e49b 100644 --- a/benchtests/expf128-inputs +++ b/benchtests/expf128-inputs @@ -1,6 +1,6 @@ ## includes: math.h -## args: __float128 -## ret: __float128 +## args: _Float128 +## ret: _Float128 # Random inputs in [-10,10] ## name: workload-random.wrf 0x4.e6f9d6da10d9a422942a89cdfa1p+0L diff --git a/benchtests/powf128-inputs b/benchtests/powf128-inputs index 7cbabafff6..6826266ad5 100644 --- a/benchtests/powf128-inputs +++ b/benchtests/powf128-inputs @@ -1,6 +1,6 @@ ## includes: math.h -## args: __float128:__float128 -## ret: __float128 +## args: _Float128:_Float128 +## ret: _Float128 # Random inputs in [-10,10] such that x and y are not both negative ## name: workload-random.wrf 0x8.130b31ed5288656428a29cead83p+0L, -0x6.e7ead09b7877a118813b50cfb3c8p+0L diff --git a/benchtests/sinf128-inputs b/benchtests/sinf128-inputs index 9aaf312413..01b7533680 100644 --- a/benchtests/sinf128-inputs +++ b/benchtests/sinf128-inputs @@ -1,6 +1,6 @@ ## includes: math.h -## args: __float128 -## ret: __float128 +## args: _Float128 +## ret: _Float128 # Random inputs in [-10,10] ## name: workload-random.wrf 0x4.e6f9d6da10d9a422942a89cdfa1p+0