From: Stefan Schulze Frielinghaus Date: Mon, 9 Feb 2026 16:22:08 +0000 (+0100) Subject: s390: testsuite: Use arch z14 instead of native X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=403b38e7b82cfae5fbbb825990b8a3aa7a78f476;p=thirdparty%2Fgcc.git s390: testsuite: Use arch z14 instead of native Pin those tests to z14. Strictly speaking those are mostly fine for z13, too. However, vectors with 32-bit float elements are only natively supported since z14. gcc/testsuite/ChangeLog: * gcc.target/s390/vector/partial/s390-vec-length-epil-1.c: Use arch z14 instead of native. * gcc.target/s390/vector/partial/s390-vec-length-epil-2.c: Ditto. * gcc.target/s390/vector/partial/s390-vec-length-epil-3.c: Ditto. * gcc.target/s390/vector/partial/s390-vec-length-epil-7.c: Ditto. * gcc.target/s390/vector/partial/s390-vec-length-epil-run-1.c: Ditto. * gcc.target/s390/vector/partial/s390-vec-length-epil-run-2.c: Ditto. * gcc.target/s390/vector/partial/s390-vec-length-epil-run-3.c: Ditto. * gcc.target/s390/vector/partial/s390-vec-length-epil-run-7.c: Ditto. * gcc.target/s390/vector/partial/s390-vec-length-full-1.c: Ditto. * gcc.target/s390/vector/partial/s390-vec-length-full-2.c: Ditto. * gcc.target/s390/vector/partial/s390-vec-length-full-3.c: Ditto. * gcc.target/s390/vector/partial/s390-vec-length-full-7.c: Ditto. * gcc.target/s390/vector/partial/s390-vec-length-full-run-1.c: Ditto. * gcc.target/s390/vector/partial/s390-vec-length-full-run-2.c: Ditto. * gcc.target/s390/vector/partial/s390-vec-length-full-run-3.c: Ditto. * gcc.target/s390/vector/partial/s390-vec-length-full-run-7.c: Ditto. * gcc.target/s390/vector/partial/s390-vec-length-small.c: Ditto. --- diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-1.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-1.c index ca844f79f617..05bf7ce053d6 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-1.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-1.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=1 --param=min-vect-loop-bound=0" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-2.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-2.c index 31850f81c809..f2798a99a943 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-2.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-2.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=1 --param=min-vect-loop-bound=0" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-3.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-3.c index 4e342de331c4..89ee67c1c248 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-3.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-3.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=1 --param=min-vect-loop-bound=0" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-7.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-7.c index c85c93e17d87..590c65551563 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-7.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-7.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -ffast-math -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -ffast-math -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=1 --param=min-vect-loop-bound=0" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-1.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-1.c index 83d986451cb0..0675146235e8 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-1.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-1.c @@ -1,5 +1,5 @@ /* { dg-do run { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=1" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-2.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-2.c index 8b3b19516bfa..559f57c13d49 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-2.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-2.c @@ -1,5 +1,5 @@ /* { dg-do run { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=1" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-3.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-3.c index f2f94efc14bb..914e30d2e418 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-3.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-3.c @@ -1,5 +1,5 @@ /* { dg-do run { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=1" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-7.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-7.c index c1f58c3ee427..085e871633ee 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-7.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-epil-run-7.c @@ -1,5 +1,5 @@ /* { dg-do run { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -ffast-math -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -ffast-math -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=1" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-1.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-1.c index 0ff86e70e48e..de42eb73cdb6 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-1.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-1.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=2" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-2.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-2.c index f47fb8949437..2a87c1795ad2 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-2.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-2.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=2" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-3.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-3.c index 086185f461b0..f3b33b531b80 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-3.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-3.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=2 --param=min-vect-loop-bound=0" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-7.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-7.c index 23856e1c5fa0..81208fc486d6 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-7.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-7.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=2" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-1.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-1.c index b064706c63ed..b31b2ffec5cf 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-1.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-1.c @@ -1,5 +1,5 @@ /* { dg-do run { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=2" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-2.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-2.c index c9a4ae8f3a6a..55c9d48445e2 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-2.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-2.c @@ -1,5 +1,5 @@ /* { dg-do run { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=2" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-3.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-3.c index b422119b7ece..5a9b916d8235 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-3.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-3.c @@ -1,5 +1,5 @@ /* { dg-do run { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=2" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-7.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-7.c index dea7a0acec74..5eedc4ddd3d3 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-7.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-full-run-7.c @@ -1,5 +1,5 @@ /* { dg-do run { target { lp64 && s390_vx } } } */ -/* { dg-options "-march=native -O2 -ftree-vectorize -fno-vect-cost-model -ffast-math -fno-trapping-math" } */ +/* { dg-options "-march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -ffast-math -fno-trapping-math" } */ /* { dg-additional-options "--param=vect-partial-vector-usage=2" } */ diff --git a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-small.c b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-small.c index ed953c876e4b..0564c5d71d9d 100644 --- a/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-small.c +++ b/gcc/testsuite/gcc.target/s390/vector/partial/s390-vec-length-small.c @@ -1,5 +1,5 @@ /* { dg-do compile { target { lp64 && s390_vx } } } */ -/* { dg-options "-mzarch -march=native -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops" } */ +/* { dg-options "-mzarch -march=z14 -O2 -ftree-vectorize -fno-vect-cost-model -fno-unroll-loops" } */ /* { dg-additional-options "--param=min-vect-loop-bound=0 --param=vect-partial-vector-usage=2 -fno-trapping-math" } */