Hi,
This patch adds a c99_runtime requirement to fold-round-1.c so that
targets without the required runtime support report the test as
unsupported rather than failing the assembler check.
Tested on arm-none-eabi, using r17-5743-ge33129b871c302 as the baseline.
OK for trunk and releases/gcc-16?
Kind regards,
Torbjörn
--
Skip fold-round-1.c on targets without a C99 runtime, where the
expected rounding optimizations may not be available.
gcc/testsuite/ChangeLog:
PR testsuite/124262
* gcc.dg/fold-round-1.c: Require c99_runtime.
Signed-off-by: Torbjörn SVENSSON <[email protected]>
---
gcc/testsuite/gcc.dg/fold-round-1.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/testsuite/gcc.dg/fold-round-1.c
b/gcc/testsuite/gcc.dg/fold-round-1.c
index 5badefe9c0b..3897550f4d9 100644
--- a/gcc/testsuite/gcc.dg/fold-round-1.c
+++ b/gcc/testsuite/gcc.dg/fold-round-1.c
@@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-Ofast" } */
+/* { dg-require-effective-target c99_runtime } */
/* { dg-skip-if "Target lacks hardware-native quad-precision folding routines"
{ hppa*-*-hpux* } } */
extern void link_error (void);
--
2.43.0