]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Move gcc.dg/vect/vec-scal-*.c and simplify globbing of the rest
authorRichard Biener <rguenther@suse.de>
Thu, 12 Feb 2026 10:08:53 +0000 (11:08 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 12 Feb 2026 14:28:52 +0000 (15:28 +0100)
The following creates a subdirectory gcc.dg/vect/veclower/ and moves
the vector lowering tests vec-scal-*.c there.  This simplifies
globbing of gcc.dg/vect/ testcases, partitioning them into
bb-slp-*.c and non-bb-slp-*.c sets.  I needed to rename bb-slp
files in complex/ and skip templates that are just included there.

* gcc.dg/vect/vect.exp: Adjust vec-scal-*.c glob.  Merge
globbing of non-bb-slp-*.c tests to a *.c glob excluding
bb-slp-*.c.
* gcc.dg/vect/vec-scal-opt.c: Move ...
* gcc.dg/vect/veclower/vec-scal-opt.c: ... here.
* gcc.dg/vect/vec-scal-opt1.c: Move ...
* gcc.dg/vect/veclower/vec-scal-opt1.c: ... here.
* gcc.dg/vect/vec-scal-opt2.c: Move ...
* gcc.dg/vect/veclower/vec-scal-opt2.c: ... here.
* gcc.dg/vect/complex/fast-math-bb-slp-complex-add-double.c: Rename to ...
* gcc.dg/vect/complex/bb-slp-complex-add-double.c: ... this.
* gcc.dg/vect/complex/fast-math-bb-slp-complex-add-float.c: Rename to ...
* gcc.dg/vect/complex/bb-slp-complex-add-float.c: ... this.
* gcc.dg/vect/complex/fast-math-bb-slp-complex-add-half-float.c: Rename to ...
* gcc.dg/vect/complex/bb-slp-complex-add-half-float.c: ... this.
* gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-double.c: Rename to ...
* gcc.dg/vect/complex/bb-slp-complex-add-pattern-double.c: ... this.
* gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-float.c: Rename to ...
* gcc.dg/vect/complex/bb-slp-complex-add-pattern-float.c: ... this.
* gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-half-float.c: Rename to ...
* gcc.dg/vect/complex/bb-slp-complex-add-pattern-half-float.c: ... this.
* gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-double.c: Rename to ...
* gcc.dg/vect/complex/bb-slp-complex-mla-double.c: ... this.
* gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-float.c: Rename to ...
* gcc.dg/vect/complex/bb-slp-complex-mla-float.c: ... this.
* gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-half-float.c: Rename to ...
* gcc.dg/vect/complex/bb-slp-complex-mla-half-float.c: ... this.
* gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-double.c: Rename to ...
* gcc.dg/vect/complex/bb-slp-complex-mls-double.c: ... this.
* gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-float.c: Rename to ...
* gcc.dg/vect/complex/bb-slp-complex-mls-float.c: ... this.
* gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-half-float.c: Rename to ...
* gcc.dg/vect/complex/bb-slp-complex-mls-half-float.c: ... this.
* gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-double.c: Rename to ...
* gcc.dg/vect/complex/bb-slp-complex-mul-double.c: ... this.
* gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-float.c: Rename to ...
* gcc.dg/vect/complex/bb-slp-complex-mul-float.c : ... this.
* gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-half-float.c: Rename to ...
* gcc.dg/vect/complex/bb-slp-complex-mul-half-float.c: ... this.
* gcc.dg/vect/complex/complex-add-pattern-template.c: Skip.
* gcc.dg/vect/complex/complex-add-template.c: Skip.
* gcc.dg/vect/complex/complex-mla-template.c: Skip.
* gcc.dg/vect/complex/complex-mls-template.c: Skip.
* gcc.dg/vect/complex/complex-mul-template.c: Skip.
* gcc.dg/vect/complex/complex-operations.c: Skip.

25 files changed:
gcc/testsuite/gcc.dg/vect/complex/bb-slp-complex-add-double.c [moved from gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-double.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/complex/bb-slp-complex-add-float.c [moved from gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-float.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/complex/bb-slp-complex-add-half-float.c [moved from gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-half-float.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/complex/bb-slp-complex-add-pattern-double.c [moved from gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-double.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/complex/bb-slp-complex-add-pattern-float.c [moved from gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-float.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/complex/bb-slp-complex-add-pattern-half-float.c [moved from gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-half-float.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/complex/bb-slp-complex-mla-double.c [moved from gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-double.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/complex/bb-slp-complex-mla-float.c [moved from gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-float.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/complex/bb-slp-complex-mla-half-float.c [moved from gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-half-float.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/complex/bb-slp-complex-mls-double.c [moved from gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-double.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/complex/bb-slp-complex-mls-float.c [moved from gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-float.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/complex/bb-slp-complex-mls-half-float.c [moved from gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-half-float.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/complex/bb-slp-complex-mul-double.c [moved from gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-double.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/complex/bb-slp-complex-mul-float.c [moved from gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-float.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/complex/bb-slp-complex-mul-half-float.c [moved from gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-half-float.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/complex/complex-add-pattern-template.c
gcc/testsuite/gcc.dg/vect/complex/complex-add-template.c
gcc/testsuite/gcc.dg/vect/complex/complex-mla-template.c
gcc/testsuite/gcc.dg/vect/complex/complex-mls-template.c
gcc/testsuite/gcc.dg/vect/complex/complex-mul-template.c
gcc/testsuite/gcc.dg/vect/complex/complex-operations.c
gcc/testsuite/gcc.dg/vect/veclower/vec-scal-opt.c [moved from gcc/testsuite/gcc.dg/vect/vec-scal-opt.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/veclower/vec-scal-opt1.c [moved from gcc/testsuite/gcc.dg/vect/vec-scal-opt1.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/veclower/vec-scal-opt2.c [moved from gcc/testsuite/gcc.dg/vect/vec-scal-opt2.c with 100% similarity]
gcc/testsuite/gcc.dg/vect/vect.exp

index 9b9f0a4a7d8e57d59c021b0a0cf4059c04d765b5..67741f581767f828d67cb960cd018f68bf05da11 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-skip-if "template file" { *-*-* } } */
+
 void add90 (TYPE a[restrict N], TYPE b[restrict N], TYPE c[restrict N])
 {
 #if defined (UNROLL)
index 3870196b9fb2542394fff55a4b7b0720439be856..976e7331dc013dda14f269b92c1f0fb94e98a773 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-skip-if "template file" { *-*-* } } */
+
 #include <complex.h>
 
 void add0 (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
index 4b5c42b29f1b40bc88c39e6baedd8c930c823dd1..693cfd4b35f145aacb0ecaa7c011b85a37624b61 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-skip-if "template file" { *-*-* } } */
+
 #include <complex.h>
 
 void fma0 (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
index 1954be8b06ad4db91d5ae4ced01aefaaf22b4071..af4517f2b20693212c6f7c92df1a78efa07ae5b3 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-skip-if "template file" { *-*-* } } */
+
 #include <complex.h>
 
 void fms0 (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
index 770565c4509ccbcc662e93a91374b895f7b16907..1245e42cde848cee48cd5489f27ea57e0f3291cf 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-skip-if "template file" { *-*-* } } */
+
 #include <complex.h>
 
 void mul0 (_Complex TYPE a[restrict N], _Complex TYPE b[restrict N],
index fdce995481d23c6a536293c8ee59eaf9ca9239bf..0a79a175605a5f28e3dba779a4343a1c35b31db6 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-skip-if "template file" { *-*-* } } */
+
 #include <stdio.h>
 #include <complex.h>
 
index 025c3360c0d43c365041e504a3d615da561e385b..958156b6ae01412b9d7a1b96bd4c394a038d5839 100644 (file)
@@ -59,7 +59,7 @@ lappend DEFAULT_VECTCFLAGS "-O2"
 # "-O -fdump-tree-veclower2"
 lappend VEC_FLAGS "-O" "-fdump-tree-veclower2"
 et-dg-runtest dg-runtest [lsort [glob -nocomplain \
-       $srcdir/$subdir/vec-scal-*.\[cS\]]] \
+       $srcdir/$subdir/veclower/*.\[cS\]]] \
        "" $VEC_FLAGS
 
 set VECT_SLP_CFLAGS $DEFAULT_VECTCFLAGS
@@ -73,60 +73,20 @@ if { [check_effective_target_lto] } {
     lappend VECT_ADDITIONAL_FLAGS "-flto -ffat-lto-objects"
 }
 foreach flags $VECT_ADDITIONAL_FLAGS {
-    et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/pr*.\[cS\]]] \
-       $flags $DEFAULT_VECTCFLAGS
-    et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/vect-*.\[cS\]]] \
-       $flags $DEFAULT_VECTCFLAGS
+    set tests ""
+    foreach file [glob -nocomplain $srcdir/$subdir/*.\[cS\]] {
+       if { ! [string match $srcdir/$subdir/bb-slp-*.\[cS\] $file] } {
+          lappend tests $file
+       }
+    }
+    et-dg-runtest dg-runtest $tests $flags $DEFAULT_VECTCFLAGS
+
     et-dg-runtest dg-runtest [lsort \
        [glob -nocomplain $srcdir/$subdir/tsvc/*.\[cS\]]] \
        $flags $DEFAULT_VECTCFLAGS
-    et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/slp-*.\[cS\]]] \
-       $flags $DEFAULT_VECTCFLAGS
-    et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/no-*.\[cS\]]] \
-       $flags $DEFAULT_VECTCFLAGS
-    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/trapv-*.\[cS\]]] \
-       $flags $DEFAULT_VECTCFLAGS
-    et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/unswitch-loops-*.\[cS\]]] \
-       $flags $DEFAULT_VECTCFLAGS
-    et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/ggc-*.\[cS\]]] \
-       $flags $DEFAULT_VECTCFLAGS
-    et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/Os-vect-*.\[cS\]]] \
-       $flags $DEFAULT_VECTCFLAGS
-    et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/O3-*.\[cS\]]] \
-       $flags $DEFAULT_VECTCFLAGS
-    et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/O1-*.\[cS\]]] \
-       $flags $DEFAULT_VECTCFLAGS
-    et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/O-*.\[cS\]]] \
-       $flags $DEFAULT_VECTCFLAGS
-    et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/section-anchors-*.\[cS\]]] \
-       $flags $DEFAULT_VECTCFLAGS
-    et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/aligned-section-anchors-*.\[cS\]]] \
-       $flags $DEFAULT_VECTCFLAGS
-    et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/nodump-*.\[cS\]]] \
-       $flags $DEFAULT_VECTCFLAGS
 
     et-dg-runtest dg-runtest [lsort \
-       [glob -nocomplain $srcdir/$subdir/bb-slp*.\[cS\]]] \
+       [glob -nocomplain $srcdir/$subdir/bb-slp-*.\[cS\]]] \
        $flags $VECT_SLP_CFLAGS
 }