dfp.exp tests for dfprt before deciding whether to default to run or
compile, and the PR120631 tests override that without checking for
dfprt.  Rework them to avoid attempting to link and run programs
when dfp runtime support isn't available.

Tested on x86_64-linux-gnu, and, with gcc-14, on aarch64-elf.
Ok to install?


for  gcc/testsuite/ChangeLog

        PR middle-end/120631
        * pr120631.c: Drop overrider of dg-do default action.
        * bitint-9.c: Likewise.
        * bitint-10.c: Likewise.
---
 gcc/testsuite/gcc.dg/dfp/bitint-10.c |    2 +-
 gcc/testsuite/gcc.dg/dfp/bitint-9.c  |    2 +-
 gcc/testsuite/gcc.dg/dfp/pr120631.c  |    1 -
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/dfp/bitint-10.c 
b/gcc/testsuite/gcc.dg/dfp/bitint-10.c
index b48f0ea6c277e..4a73aebe095c9 100644
--- a/gcc/testsuite/gcc.dg/dfp/bitint-10.c
+++ b/gcc/testsuite/gcc.dg/dfp/bitint-10.c
@@ -1,5 +1,5 @@
 /* PR middle-end/120631 */
-/* { dg-do run { target bitint } } */
+/* { dg-require-effective-target bitint } */
 /* { dg-options "-O2" } */
 
 #if __BITINT_MAXWIDTH__ >= 128
diff --git a/gcc/testsuite/gcc.dg/dfp/bitint-9.c 
b/gcc/testsuite/gcc.dg/dfp/bitint-9.c
index 72155a0124753..31614876a12f9 100644
--- a/gcc/testsuite/gcc.dg/dfp/bitint-9.c
+++ b/gcc/testsuite/gcc.dg/dfp/bitint-9.c
@@ -1,5 +1,5 @@
 /* PR middle-end/120631 */
-/* { dg-do run { target bitint } } */
+/* { dg-require-effective-target bitint } */
 /* { dg-options "-O2" } */
 
 #if __BITINT_MAXWIDTH__ >= 2048
diff --git a/gcc/testsuite/gcc.dg/dfp/pr120631.c 
b/gcc/testsuite/gcc.dg/dfp/pr120631.c
index 2085ff7ba5a72..2533e9de29f81 100644
--- a/gcc/testsuite/gcc.dg/dfp/pr120631.c
+++ b/gcc/testsuite/gcc.dg/dfp/pr120631.c
@@ -1,5 +1,4 @@
 /* PR middle-end/120631 */
-/* { dg-do run } */
 /* { dg-options "-O2" } */
 
 _Decimal64 a = 1234567891357900000.0dd;


-- 
Alexandre Oliva, happy hacker            https://blog.lx.oliva.nom.br/
Free Software Activist     FSFLA co-founder     GNU Toolchain Engineer
More tolerance and less prejudice are key for inclusion and diversity.
Excluding neuro-others for not behaving ""normal"" is *not* inclusive!

Reply via email to