]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix fold-vecperm-1.c for targets that don't have vectors
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sat, 1 Nov 2025 03:04:38 +0000 (20:04 -0700)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sat, 1 Nov 2025 03:08:21 +0000 (20:08 -0700)
This testcase is testing at optimization but with targets that don't
have vectors it will fail because there will be zero VEC_PERM_EXPR.
So instead let's check earlier in say forwprop3.

Pushed as obvious after a test on x86_64-linux-gnu with -mno-sse.

gcc/testsuite/ChangeLog:

* gcc.dg/fold-vecperm-1.c: Test at forwprop3.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/testsuite/gcc.dg/fold-vecperm-1.c

index 5d4456b98b15ac319cf0ffceea0f6148f8f7b50c..878d3920803dd277ae24ab4fedea8189bb15e040 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-options "-O2 -fdump-tree-forwprop3" } */
 
 typedef int v4si __attribute__((vector_size(16)));
 typedef short v8hi __attribute__((vector_size(16)));
@@ -20,4 +20,4 @@ int128 concat (int128 a, int128 b) {
   return res;
 }
 
-/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 1 "optimized" } } */
+/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 1 "forwprop3" } } */