]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[i386] Fix testcases for emulated scatter
authorRichard Biener <rguenther@suse.de>
Tue, 2 May 2023 09:51:51 +0000 (11:51 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 2 May 2023 09:54:00 +0000 (11:54 +0200)
The following adjusts testcases where the pr88531 fail with -m32
because we do not consider MMX size vectorization there and the
pr89618 runs into load/store cost differences with -m32.

* gcc.target/i386/pr88531-2a.c: Skip scanning for ia32.
* gcc.target/i386/pr88531-2b.c: Likewise.
* gcc.target/i386/pr88531-2c.c: Likewise.
* gcc.target/i386/pr89618-2.c: Likewise.  Disable AVX512.

gcc/testsuite/gcc.target/i386/pr88531-2a.c
gcc/testsuite/gcc.target/i386/pr88531-2b.c
gcc/testsuite/gcc.target/i386/pr88531-2c.c
gcc/testsuite/gcc.target/i386/pr89618-2.c

index 8ab2b1385eb14cd674bbc2c4b5122cbb99abf5b2..d35855a25e18db19e991501f0791207ebc2d2502 100644 (file)
@@ -16,4 +16,5 @@ void loop(float * const __restrict__ dst,
     dst[i] = 42.0 * src[idx[i]];
 }
 
-/* { dg-final { scan-assembler-times "mulps" 1 } } */
+/* For ia32 we do not consider V2SFmode vectorization.  */
+/* { dg-final { scan-assembler-times "mulps" 1 { target { ! ia32 } } } } */
index cdefff2ce8e55ecc3898367cb7ed8f6227e4af50..ef005a8b690d4a1a3f9515f2fcdc891a34eae3a7 100644 (file)
@@ -3,4 +3,5 @@
 
 #include "pr88531-2a.c"
 
-/* { dg-final { scan-assembler-times "vmulps" 1 } } */
+/* For ia32 we do not consider V2SFmode vectorization.  */
+/* { dg-final { scan-assembler-times "vmulps" 1 { target { ! ia32 } } } } */
index 17b24c0daccd8dca8a3fc3188f565c9b55c27d2b..bb0eaa09826a926cf5119b7b0bd472b92238ff2f 100644 (file)
@@ -3,4 +3,5 @@
 
 #include "pr88531-2a.c"
 
-/* { dg-final { scan-assembler-times "vmulps" 1 } } */
+/* For ia32 we do not consider V2SFmode vectorization.  */
+/* { dg-final { scan-assembler-times "vmulps" 1 { target { ! ia32 } } } } */
index 0b7dcfd8806f631d4d8c4d886e8c6a853b93a457..c414053b8ecadbbe057b361cfd90737be5e00e11 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -mavx2 -fdump-tree-vect-details" } */
+/* { dg-options "-O3 -mavx2 -mno-avx512f -fdump-tree-vect-details" } */
 
 void foo (int n, int *off, double *a)
 {
@@ -20,4 +20,4 @@ void foo (int n, int *off, double *a)
 
 /* Make sure the cost model selects SSE vectors rather than AVX to avoid
    too many scalar ops for the address computes in the loop.  */
-/* { dg-final { scan-tree-dump "loop vectorized using 16 byte vectors" "vect" } } */
+/* { dg-final { scan-tree-dump "loop vectorized using 16 byte vectors" "vect" { target { ! ia32 } } } } */