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

* gcc.dg/vect/vect.exp: Remove special-casing of tests
named trapv-*
* gcc.dg/vect/trapv-vect-reduc-4.c: Add dg-additional-options -ftrapv.

gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c
gcc/testsuite/gcc.dg/vect/vect.exp

index 24cf1f793c7f15911f7866260dd4e510c48adc1a..e59fbba824f5a023c7d495f7d403697acb6d4f81 100644 (file)
@@ -1,5 +1,5 @@
 /* Disabling epilogues until we find a better way to deal with scans.  */
-/* { dg-additional-options "--param vect-epilogues-nomask=0" } */
+/* { dg-additional-options "-ftrapv --param vect-epilogues-nomask=0" } */
 /* { dg-do compile } */
 /* { dg-require-effective-target vect_int } */
 
index 14c6168f6eec4df23177fa102d76df3858803021..37e7bc424f8367e93ecadd70d7bf033581b77545 100644 (file)
@@ -115,6 +115,9 @@ foreach flags $VECT_ADDITIONAL_FLAGS {
     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/trapv-*.\[cS\]]] \
+       $flags $DEFAULT_VECTCFLAGS
 
     et-dg-runtest dg-runtest [lsort \
        [glob -nocomplain $srcdir/$subdir/fast-math-bb-slp-*.\[cS\]]] \
@@ -129,13 +132,6 @@ global SAVED_DEFAULT_VECTCFLAGS
 set SAVED_DEFAULT_VECTCFLAGS $DEFAULT_VECTCFLAGS
 set SAVED_VECT_SLP_CFLAGS $VECT_SLP_CFLAGS
 
-# -ftrapv tests
-set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS
-lappend DEFAULT_VECTCFLAGS "-ftrapv"
-et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/trapv-*.\[cS\]]] \
-       "" $DEFAULT_VECTCFLAGS
-
 # -fno-tree-dce tests
 set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS
 lappend DEFAULT_VECTCFLAGS "-fno-tree-dce"