aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSoumya AR <soumyaa@nvidia.com>2024-11-19 14:23:47 +0530
committerSoumya AR <soumyaa@nvidia.com>2024-11-19 14:23:47 +0530
commit90645dba41bac29cab4c5996ba320c97a0325eb2 (patch)
treef3b72aa115ac62c416cfdfde88848858251f568c /gcc
parentfff5cfa4353e0c45400d8cb9cbff5c40c55fc97a (diff)
downloadgcc-90645dba41bac29cab4c5996ba320c97a0325eb2.zip
gcc-90645dba41bac29cab4c5996ba320c97a0325eb2.tar.gz
gcc-90645dba41bac29cab4c5996ba320c97a0325eb2.tar.bz2
[PATCH] testsuite: Require C99 for pow-to-ldexp.c
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/pow-to-ldexp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pow-to-ldexp.c b/gcc/testsuite/gcc.dg/tree-ssa/pow-to-ldexp.c
index 007949d..5be3dc8 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pow-to-ldexp.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pow-to-ldexp.c
@@ -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" } } */