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

commit r16-4915-gab29201c5bb8158eb22133ba41b147bb2d115026
Author: Andrew Pinski <[email protected]>
Date:   Fri Oct 31 20:04:38 2025 -0700

    testsuite: Fix fold-vecperm-1.c for targets that don't have vectors
    
    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 <[email protected]>

Diff:
---
 gcc/testsuite/gcc.dg/fold-vecperm-1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/fold-vecperm-1.c 
b/gcc/testsuite/gcc.dg/fold-vecperm-1.c
index 5d4456b98b15..878d3920803d 100644
--- a/gcc/testsuite/gcc.dg/fold-vecperm-1.c
+++ b/gcc/testsuite/gcc.dg/fold-vecperm-1.c
@@ -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" } } */

Reply via email to