This fixes the couple of failures that have appeared recently in the vectorizer 
testsuite on SPARC 64-bit.  Ira diagnosed that they are legitimate fallouts of 
a recent improvement to the vectorizer:
  http://gcc.gnu.org/ml/gcc-patches/2011-04/msg02210.html
so the attached patch simply XFAILs them.

Tested on SPARC/Solaris SPARC64/Solaris and x86/Linux, applied on the mainline.


2011-07-06  Eric Botcazou  <ebotca...@adacore.com>

        PR testsuite/49542
        * gcc.dg/vect/pr33804.c: XFAIL if vect_no_align unconditionally.
        * gcc.dg/vect/slp-multitypes-3.c: XFAIL on SPARC unconditionally.


-- 
Eric Botcazou
Index: gcc.dg/vect/pr33804.c
===================================================================
--- gcc.dg/vect/pr33804.c	(revision 175840)
+++ gcc.dg/vect/pr33804.c	(working copy)
@@ -11,6 +11,6 @@ void f(unsigned char *s, unsigned char *
     }
 }
 
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail  { vect_no_align && ilp32 } } } } */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail { vect_no_align && ilp32 } } } } */
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_align } } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_align } } } */
 /* { dg-final { cleanup-tree-dump "vect" } } */
Index: gcc.dg/vect/slp-multitypes-3.c
===================================================================
--- gcc.dg/vect/slp-multitypes-3.c	(revision 175840)
+++ gcc.dg/vect/slp-multitypes-3.c	(working copy)
@@ -87,7 +87,6 @@ int main (void)
   return 0;
 }
 
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail { sparc*-*-* && ilp32 } } } } */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" { xfail { sparc*-*-* && ilp32 } }} } */
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail sparc*-*-* } } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" { xfail sparc*-*-* } } } */
 /* { dg-final { cleanup-tree-dump "vect" } } */
-  

Reply via email to