]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
commitab29201c5bb8158eb22133ba41b147bb2d115026
tree427ba039a387f6fcd58fceed1e98b38d44e2b360
parenta3ee90fd3dc5d5c98f63a16f9cdd788c5d5c3335
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 <andrew.pinski@oss.qualcomm.com>
gcc/testsuite/gcc.dg/fold-vecperm-1.c