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

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


2024-05-22  Rainer Orth  <r...@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.

# 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 } } } } } } */

Reply via email to