]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[4/n] remove wrapv-*.c special-casing of gcc.dg/vect/ files
authorRichard Biener <rguenther@suse.de>
Fri, 18 Oct 2024 11:38:14 +0000 (13:38 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 18 Oct 2024 12:44:54 +0000 (14:44 +0200)
The following makes -fwrapv explicit.

* gcc.dg/vect/vect.exp: Remove special-casing of tests
named wrapv-*
* gcc.dg/vect/wrapv-vect-7.c: Add dg-additional-options -fwrapv.
* gcc.dg/vect/wrapv-vect-reduc-2char.c: Likewise.
* gcc.dg/vect/wrapv-vect-reduc-2short.c: Likewise.
* gcc.dg/vect/wrapv-vect-reduc-dot-s8b.c: Likewise.
* gcc.dg/vect/wrapv-vect-reduc-pattern-2c.c: Likewise.

gcc/testsuite/gcc.dg/vect/vect.exp
gcc/testsuite/gcc.dg/vect/wrapv-vect-7.c
gcc/testsuite/gcc.dg/vect/wrapv-vect-reduc-2char.c
gcc/testsuite/gcc.dg/vect/wrapv-vect-reduc-2short.c
gcc/testsuite/gcc.dg/vect/wrapv-vect-reduc-dot-s8b.c
gcc/testsuite/gcc.dg/vect/wrapv-vect-reduc-pattern-2c.c

index eddebf53c7f5bed1fa422745e70e738630eb08d5..14c6168f6eec4df23177fa102d76df3858803021 100644 (file)
@@ -112,6 +112,13 @@ foreach flags $VECT_ADDITIONAL_FLAGS {
     et-dg-runtest dg-runtest [lsort \
        [glob -nocomplain $srcdir/$subdir/fast-math-\[ipsvc\]*.\[cS\]]] \
        $flags $DEFAULT_VECTCFLAGS
+    et-dg-runtest dg-runtest [lsort \
+       [glob -nocomplain $srcdir/$subdir/wrapv-*.\[cS\]]] \
+       $flags $DEFAULT_VECTCFLAGS
+
+    et-dg-runtest dg-runtest [lsort \
+       [glob -nocomplain $srcdir/$subdir/fast-math-bb-slp-*.\[cS\]]] \
+       $flags $VECT_SLP_CFLAGS
     et-dg-runtest dg-runtest [lsort \
        [glob -nocomplain $srcdir/$subdir/bb-slp*.\[cS\]]] \
        $flags $VECT_SLP_CFLAGS
@@ -122,20 +129,6 @@ global SAVED_DEFAULT_VECTCFLAGS
 set SAVED_DEFAULT_VECTCFLAGS $DEFAULT_VECTCFLAGS
 set SAVED_VECT_SLP_CFLAGS $VECT_SLP_CFLAGS
 
-# -ffast-math SLP tests
-set VECT_SLP_CFLAGS $SAVED_VECT_SLP_CFLAGS
-lappend VECT_SLP_CFLAGS "-ffast-math"
-et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/fast-math-bb-slp-*.\[cS\]]] \
-       "" $VECT_SLP_CFLAGS
-
-# -fwrapv tests
-set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS
-lappend DEFAULT_VECTCFLAGS "-fwrapv"
-et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/wrapv-*.\[cS\]]] \
-       "" $DEFAULT_VECTCFLAGS
-
 # -ftrapv tests
 set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS
 lappend DEFAULT_VECTCFLAGS "-ftrapv"
index 414bd9d3e1279db574d860b7a721e4310d4972da..2a557f697e11520eb6101acf87006b3d2b7f9722 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-additional-options "-fwrapv" } */
 /* { dg-require-effective-target vect_int } */
 /* { dg-add-options bind_pic_locally } */
 
index 556c2a06dc5ddcbeb0356190100661b72b010042..0ee9178025e93d4cd64e3dab2ca8f316887a0706 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-additional-options "-fwrapv" } */
 /* { dg-require-effective-target vect_int } */
 
 #include <stdarg.h>
index f9142173b25784c1de96045af61c773678581947..aadc9c37da3f75dcf92a86ca21f8d599313e912f 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-additional-options "-fwrapv" } */
 /* { dg-require-effective-target vect_int } */
 
 #include <stdarg.h>
index 72080af592395afd3ad38085319537fa9be9da49..920374d426356e19e5eecf56e475489ecb0be969 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-additional-options "-fwrapv" } */
 /* Disabling epilogues until we find a better way to deal with scans.  */
 /* { dg-additional-options "--param vect-epilogues-nomask=0" } */
 /* { dg-require-effective-target vect_int } */
index e3c33cff7e1427f284cebcadd1d759b613ce0d4e..be0447c7b1038378a96e0549939d8ed3f030999a 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-additional-options "-fwrapv" } */
 /* { dg-require-effective-target vect_int } */
 
 #include <stdarg.h>