]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix gcc.dg/vect/slp-28.c
authorRichard Biener <rguenther@suse.de>
Tue, 22 Jul 2025 06:44:25 +0000 (08:44 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 22 Jul 2025 06:45:49 +0000 (08:45 +0200)
gcc.dg/vect/slp-28.c is now vectorized as expected even on targets
without vect32.

* gcc.dg/vect/slp-28.c: Adjust.

gcc/testsuite/gcc.dg/vect/slp-28.c

index 67b7be29b22bb646b4bea2e0448e919319b11c98..1f987874f0df53f009cf535a8559632cd4ccb8a3 100644 (file)
@@ -59,8 +59,8 @@ main1 ()
         abort ();
     }
   
-  /* Not vectorizable because of data dependencies: distance 3 is greater than 
-     the actual VF with SLP (2), but the analysis fail to detect that for now.  */
+  /* Dependence distance 3 is greater than the actual VF with SLP (2),
+     thus vectorizable.  */
   for (i = 3; i < N/4; i++)
     {
       in3[i*4] = in3[(i-3)*4] + 5;
@@ -91,7 +91,6 @@ int main (void)
   return 0;
 }
 
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { ! vect32 } } } } */
-/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { target vect32 } } } */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { ! vect32 } } } } */
+/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" } } */