[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.
This commit is contained in:
Soumya AR 2024-11-19 14:23:47 +05:30
parent fff5cfa435
commit 90645dba41

View 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" } } */