[gcc r14-8209] testsuite: Fix up gcc.target/i386/sse4_1-stv-1.c test [PR113452]

Jakub Jelinek jakub@gcc.gnu.org
Thu Jan 18 07:46:42 GMT 2024


https://gcc.gnu.org/g:b032f4b7da56a225a0a14d40da2d47a6fcbab3f3

commit r14-8209-gb032f4b7da56a225a0a14d40da2d47a6fcbab3f3
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Thu Jan 18 08:46:15 2024 +0100

    testsuite: Fix up gcc.target/i386/sse4_1-stv-1.c test [PR113452]
    
    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.

Diff:
---
 gcc/testsuite/gcc.target/i386/sse4_1-stv-1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/i386/sse4_1-stv-1.c b/gcc/testsuite/gcc.target/i386/sse4_1-stv-1.c
index 12db618fb7d..6230dbe161e 100644
--- a/gcc/testsuite/gcc.target/i386/sse4_1-stv-1.c
+++ b/gcc/testsuite/gcc.target/i386/sse4_1-stv-1.c
@@ -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];


More information about the Gcc-cvs mailing list