]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: i386: Require dfp support in gcc.target/i386/pr117946.c etc.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 26 Mar 2025 10:46:57 +0000 (11:46 +0100)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 26 Mar 2025 10:46:57 +0000 (11:46 +0100)
Two tests FAIL on 64-bit Solaris/x86:

FAIL: gcc.target/i386/pr117946.c (test for excess errors)
FAIL: gcc.target/i386/pr118017.c (test for excess errors)

The failure mode is the same in both cases:

Excess errors:
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.target/i386/pr117946.c:4:47: error: decimal floating-point not supported for this target

Excess errors:
/vol/gcc/src/hg/master/local/gcc/testsuite/gcc.target/i386/pr118017.c:6:47: error: decimal floating-point not supported for this target

Fixed by requiring dfp support.

Tested on i386-pc-solaris2.11 and x86_64-pc-linux-gnu.

2025-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

gcc/testsuite:
* gcc.target/i386/pr117946.c: Require dfp support.
* gcc.target/i386/pr118017.c: Likewise.  Use
dg-require-effective-target for both this and int128.

gcc/testsuite/gcc.target/i386/pr117946.c
gcc/testsuite/gcc.target/i386/pr118017.c

index c4bf8254967caa76dfd307fb59cf0354633ad2f9..b46921cedaa238b36fd7550a7b582d84c5ca24f3 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do compile  { target { ! ia32 } } } */
+/* { dg-require-effective-target dfp } */
 /* { dg-options "-O -favoid-store-forwarding -mavx10.1 -mprefer-avx128 --param=store-forwarding-max-distance=128 -Wno-psabi" } */
 /* { dg-warning "'-mavx10.1' is aliased to 512 bit since GCC14.3 and GCC15.1 while '-mavx10.1-256' and '-mavx10.1-512' will be deprecated in GCC 16 due to all machines 512 bit vector size supported" "" { target *-*-* } 0 } */
 typedef __attribute__((__vector_size__ (64))) _Decimal32 V;
index 28797a0ad73f82ea9940e322f1264310faeafab8..831ec6efb645c3875bb64d8028c31a623986bf09 100644 (file)
@@ -1,5 +1,7 @@
 /* PR target/118017 */
-/* { dg-do compile { target int128 } } */
+/* { dg-do compile } */
+/* { dg-require-effective-target int128 } */
+/* { dg-require-effective-target dfp } */
 /* { dg-options "-Og -frounding-math -mno-80387 -mno-mmx -Wno-psabi" } */
 
 typedef __attribute__((__vector_size__ (64))) _Float128 F;