diff mbox series

[COMMITTED] testsuite: vect: Fix gcc.dg/vect/vect-pr111779.c on SPARC [PR114072]

Message ID yddzfshgdzb.fsf@CeBiTec.Uni-Bielefeld.DE
State New
Headers show
Series [COMMITTED] testsuite: vect: Fix gcc.dg/vect/vect-pr111779.c on SPARC [PR114072] | expand

Commit Message

Rainer Orth May 23, 2024, 7:54 a.m. UTC
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).

Committed to trunk as pre-approved in the PR.

	Rainer
diff mbox series

Patch

# HG changeset patch
# Parent  1f3d09b9a831993fdfb155ebf7a4e540201d9f76
testsuite: vect: Fix gcc.dg/vect/vect-pr111779.c on SPARC [PR114072]

diff --git a/gcc/testsuite/gcc.dg/vect/vect-pr111779.c b/gcc/testsuite/gcc.dg/vect/vect-pr111779.c
--- a/gcc/testsuite/gcc.dg/vect/vect-pr111779.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-pr111779.c
@@ -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 } } } } } } */