]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix gen-vect-26.c testcase after loops with multiple exits [PR113167]
authorAndrew Pinski <quic_apinski@quicinc.com>
Fri, 29 Dec 2023 04:26:01 +0000 (20:26 -0800)
committerAndrew Pinski <quic_apinski@quicinc.com>
Fri, 29 Dec 2023 04:49:47 +0000 (20:49 -0800)
This fixes the gcc.dg/tree-ssa/gen-vect-26.c testcase by adding
`#pragma GCC novector` in front of the loop that is doing the checking
of the result. We only want to test the first loop to see if it can be
vectorize.

Committed as obvious after testing on x86_64-linux-gnu with -m32.

gcc/testsuite/ChangeLog:

PR testsuite/113167
* gcc.dg/tree-ssa/gen-vect-26.c: Mark the test/check loop
as novector.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-26.c

index 710696198bb87a2e1189524bfdc51e4773dc5a20..fdcec67bde61c19ebcc1c9b5482a0d83186ddecd 100644 (file)
@@ -19,6 +19,7 @@ int main ()
     }
 
   /* check results:  */
+  #pragma GCC novector
   for (i = 1; i <= N; i++)
     {
       if (ia[i] != 5)