]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH] testsuite: Require C99 for pow-to-ldexp.c
authorSoumya AR <soumyaa@nvidia.com>
Tue, 19 Nov 2024 08:53:47 +0000 (14:23 +0530)
committerSoumya AR <soumyaa@nvidia.com>
Tue, 19 Nov 2024 08:53:47 +0000 (14:23 +0530)
pow-to-ldexp.c checks for calls to __builtin_ldexpf and __builtin_ldexpl, which
will only be performed when the compiler knows the target has a C99 libm
available.

Modified the test to add a C99 runtime requirement.

This fixes the failure on arm-eabi targets for this test case.

Signed-off-by: Soumya AR <soumyaa@nvidia.com>
gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/pow-to-ldexp.c: Require c99_runtime.

gcc/testsuite/gcc.dg/tree-ssa/pow-to-ldexp.c

index 007949dbb5391a915df8ffac22767f8dec370a2c..5be3dc899557824f0ac3a498277bff1585129db2 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-additional-options "-Ofast -fdump-tree-optimized" } */
+/* { dg-require-effective-target c99_runtime } */
 
 /* { dg-final { scan-tree-dump-times "__builtin_ldexp\ " 7 "optimized" } } */
 /* { dg-final { scan-tree-dump-times "__builtin_ldexpf\ " 7 "optimized" } } */