From: Rainer Orth Date: Thu, 23 May 2024 07:53:45 +0000 (+0200) Subject: testsuite: vect: Fix gcc.dg/vect/vect-pr111779.c on SPARC [PR114072] X-Git-Tag: basepoints/gcc-16~8764 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc5e109272977f0242a2ceee3a85765cdbed1993;p=thirdparty%2Fgcc.git testsuite: vect: Fix gcc.dg/vect/vect-pr111779.c on SPARC [PR114072] 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 gcc/testsuite: PR tree-optimization/114072 * gcc.dg/vect/vect-pr111779.c (scan-tree-dump): Require vect_shift_char on big-endian targets. --- diff --git a/gcc/testsuite/gcc.dg/vect/vect-pr111779.c b/gcc/testsuite/gcc.dg/vect/vect-pr111779.c index 79b72aebc78..2400de10590 100644 --- 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 } } } } } } */