Move gcc.dg/vect/vec-scal-*.c and simplify globbing of the rest

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.
This commit is contained in:
Richard Biener
2026-02-12 11:08:53 +01:00
committed by Richard Biener
parent 4b12cc841f
commit 2fb61a5031
25 changed files with 22 additions and 50 deletions

View 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)

View 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],

View 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],

View 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],

View 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],

View File

@@ -1,3 +1,5 @@
/* { dg-skip-if "template file" { *-*-* } } */
#include <stdio.h>
#include <complex.h>

View 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
}