]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: vect: Fix gcc.dg/vect/vect-pr111779.c on SPARC [PR114072]
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 23 May 2024 07:53:45 +0000 (09:53 +0200)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 23 May 2024 07:53:45 +0000 (09:53 +0200)
gcc.dg/vect/vect-pr111779.c FAILs on 32 and 64-bit Solaris/SPARC:

FAIL: gcc.dg/vect/vect-pr111779.c -flto -ffat-lto-objects  scan-tree-dump vect "LOOP VECTORIZED"
FAIL: gcc.dg/vect/vect-pr111779.c scan-tree-dump vect "LOOP VECTORIZED"

This patch implements Richard's analysis from the PR, skipping the
scan-tree-dump part for big-endian targets without vect_shift_char
support.

Tested on sparc-sun-solaris2.11 and i386-pc-solaris2.11 (32 and 64-bit each).

2024-05-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

gcc/testsuite:
PR tree-optimization/114072
* gcc.dg/vect/vect-pr111779.c (scan-tree-dump): Require
vect_shift_char on big-endian targets.

gcc/testsuite/gcc.dg/vect/vect-pr111779.c

index 79b72aebc78e29995d08667806f223d3e39f3f76..2400de10590221f94fc36471a2cbb543bb5d8276 100644 (file)
@@ -53,4 +53,4 @@ main ()
   return 0;
 }
 
-/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { target vect_int } } } */
+/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { target { vect_int && { le || { be && vect_shift_char } } } } } } */