]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: testsuite: require cmath for exp simd
authorAlexandre Oliva <oliva@adacore.com>
Mon, 27 Jun 2022 13:34:19 +0000 (10:34 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Mon, 27 Jun 2022 13:34:19 +0000 (10:34 -0300)
simd_math.h assumes declarations for many C99 functions to be present,
that libstdc++ doesn't add to target systems that don't have them in
the C library.

Add the C99 math requirement to tests for simd features, so that they
don't fail because of limitations of the target C library.

for  libstdc++-v3/ChangeLog

* testsuite/experimental/simd/standard_abi_usable.cc: Require
cmath support.
* testsuite/experimental/simd/standard_abi_usable_2.cc:
Likewise.

libstdc++-v3/testsuite/experimental/simd/standard_abi_usable.cc
libstdc++-v3/testsuite/experimental/simd/standard_abi_usable_2.cc

index 4d7e6726951feb0d4f53c600ef3d2ca752aae721..1b686d9ca095b0e56ef7b9548a2e245e73134a1a 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-options "-std=c++17 -fno-fast-math" }
 // { dg-do compile { target c++17 } }
+// { dg-require-cmath "" }
 
 // Copyright (C) 2020-2022 Free Software Foundation, Inc.
 //
index a609adaf000b3d089e3319621f0b1d4fe08d8b47..a0203d0b4238dfbd6737d8acc32f74ca01ead6a4 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-options "-std=c++17 -ffast-math" }
 // { dg-do compile }
+// { dg-require-cmath "" }
 
 #include "standard_abi_usable.cc"