]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix up gcc.target/i386/sse4_1-stv-1.c test [PR113452]
authorJakub Jelinek <jakub@redhat.com>
Thu, 18 Jan 2024 07:46:15 +0000 (08:46 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 18 Jan 2024 07:46:15 +0000 (08:46 +0100)
From what I can see, this test has been written for a backend fix and
assumes the loop isn't vectorized (at least, it wasn't when the test was
added, it contains an early exit), but that is no longer true and because
of the vectorization it now contains an instruction which the test scans
for not being present.

I think we should just disable vectorization here.

2024-01-18  Jakub Jelinek  <jakub@redhat.com>

PR testsuite/113452
* gcc.target/i386/sse4_1-stv-1.c: Add -fno-tree-vectorize to
dg-options.

gcc/testsuite/gcc.target/i386/sse4_1-stv-1.c

index 12db618fb7da2e3ea3d15002c4120fcfe44fb0b8..6230dbe161eb61781332f0b7d82c741212c0c4b9 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target ia32 } } */
-/* { dg-options "-O2 -msse4.1 -mstv -mno-stackrealign" } */
+/* { dg-options "-O2 -msse4.1 -mstv -mno-stackrealign -fno-tree-vectorize" } */
 long long a[1024];
 long long b[1024];