* [PATCH] testsuite: Fix up vect-simd-clone-1[678]f.c tests some more
@ 2023-04-17 9:21 Jakub Jelinek
2023-04-17 9:40 ` Richard Biener
0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2023-04-17 9:21 UTC (permalink / raw)
To: Richard Biener; +Cc: gcc-patches
Hi!
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.
Tested on x86_64-linux using the above command, ok for trunk?
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.jj 2023-04-15 12:05:43.728131002 +0200
+++ gcc/testsuite/gcc.dg/vect/vect-simd-clone-16f.c 2023-04-17 10:41:16.856503509 +0200
@@ -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"
--- gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c.jj 2023-04-15 12:05:43.747130726 +0200
+++ gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c 2023-04-17 10:41:32.746272142 +0200
@@ -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"
--- gcc/testsuite/gcc.dg/vect/vect-simd-clone-18f.c.jj 2023-04-15 12:05:43.758130566 +0200
+++ gcc/testsuite/gcc.dg/vect/vect-simd-clone-18f.c 2023-04-17 10:41:47.555056516 +0200
@@ -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"
Jakub
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] testsuite: Fix up vect-simd-clone-1[678]f.c tests some more
2023-04-17 9:21 [PATCH] testsuite: Fix up vect-simd-clone-1[678]f.c tests some more Jakub Jelinek
@ 2023-04-17 9:40 ` Richard Biener
0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2023-04-17 9:40 UTC (permalink / raw)
To: Jakub Jelinek; +Cc: gcc-patches
On Mon, 17 Apr 2023, Jakub Jelinek wrote:
> Hi!
>
> 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.
>
> Tested on x86_64-linux using the above command, ok for trunk?
OK.
Thanks,
Richard.
> 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.jj 2023-04-15 12:05:43.728131002 +0200
> +++ gcc/testsuite/gcc.dg/vect/vect-simd-clone-16f.c 2023-04-17 10:41:16.856503509 +0200
> @@ -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"
> --- gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c.jj 2023-04-15 12:05:43.747130726 +0200
> +++ gcc/testsuite/gcc.dg/vect/vect-simd-clone-17f.c 2023-04-17 10:41:32.746272142 +0200
> @@ -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"
> --- gcc/testsuite/gcc.dg/vect/vect-simd-clone-18f.c.jj 2023-04-15 12:05:43.758130566 +0200
> +++ gcc/testsuite/gcc.dg/vect/vect-simd-clone-18f.c 2023-04-17 10:41:47.555056516 +0200
> @@ -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"
>
> Jakub
>
>
--
Richard Biener <rguenther@suse.de>
SUSE Software Solutions Germany GmbH, Frankenstrasse 146, 90461 Nuernberg,
Germany; GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman;
HRB 36809 (AG Nuernberg)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-17 9:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-17 9:21 [PATCH] testsuite: Fix up vect-simd-clone-1[678]f.c tests some more Jakub Jelinek
2023-04-17 9:40 ` Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).