]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix up vect-simd-clone-1[678]f.c tests some more
authorJakub Jelinek <jakub@redhat.com>
Mon, 17 Apr 2023 09:45:53 +0000 (11:45 +0200)
committerJakub Jelinek <jakub@redhat.com>
Mon, 17 Apr 2023 09:45:53 +0000 (11:45 +0200)
With
make check-gcc check-g++ -j32 -k RUNTESTFLAGS='--target_board=unix\{-m32,-m32/-mavx,-m32/-mavx512f,-m32/-march=cascadelake,-m64,-m64/-mavx,-m64/-mavx512f,-m64/-march=cascadelake\}
+vect.exp=vect-simd-clone*'
the vect-simd-clone-1[678]f.c tests fail with -m32/-mavx512f and -m32/-march=cascadelake,
in that case there are zero matches rather than the 4 expected for ia32.
-m64/-mavx512f and -m64/-march=cascadelake works fine though (2 expected
matches).

So, the following patch just adds -mno-avx512f for x86 non-lp64.

2023-04-17  Jakub Jelinek  <jakub@redhat.com>

* gcc.dg/vect/vect-simd-clone-16f.c: Add -mno-avx512f for non-lp64 x86.
* gcc.dg/vect/vect-simd-clone-17f.c: Likewise.
* gcc.dg/vect/vect-simd-clone-18f.c: Likewise.

gcc/testsuite/gcc.dg/vect/vect-simd-clone-16f.c
gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c
gcc/testsuite/gcc.dg/vect/vect-simd-clone-18f.c

index 1e2b6056db101c01bb304a99229e02651b9441d6..574698d3e133ecb8700e698fa42a6b05dd6b8a18 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-require-effective-target vect_simd_clones } */
 /* { dg-additional-options "-fopenmp-simd --param vect-epilogues-nomask=0" } */
 /* { dg-additional-options "-mavx" { target avx_runtime } } */
+/* { dg-additional-options "-mno-avx512f" { target { { i?86*-*-* x86_64-*-* } && { ! lp64 } } } } */
 
 #define TYPE __INT64_TYPE__
 #include "vect-simd-clone-16.c"
index c1dc420d2ca9520bc729afd9fdcac097bb9c0e15..8bb6d19301a67a3eebce522daaf7d54d88f708d7 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-require-effective-target vect_simd_clones } */
 /* { dg-additional-options "-fopenmp-simd --param vect-epilogues-nomask=0" } */
 /* { dg-additional-options "-mavx" { target avx_runtime } } */
+/* { dg-additional-options "-mno-avx512f" { target { { i?86*-*-* x86_64-*-* } && { ! lp64 } } } } */
 
 #define TYPE __INT64_TYPE__
 #include "vect-simd-clone-17.c"
index df630c2a40b69b3ad07a35d58d6f58f295870080..d34f23f4db8e9c237558cc22fe66b7e02b9e6c20 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-require-effective-target vect_simd_clones } */
 /* { dg-additional-options "-fopenmp-simd --param vect-epilogues-nomask=0" } */
 /* { dg-additional-options "-mavx" { target avx_runtime } } */
+/* { dg-additional-options "-mno-avx512f" { target { { i?86*-*-* x86_64-*-* } && { ! lp64 } } } } */
 
 #define TYPE __INT64_TYPE__
 #include "vect-simd-clone-18.c"