public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* XFAIL a few more vectorization tests on SPARC 32-bit
@ 2009-11-10 18:14 Eric Botcazou
  0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2009-11-10 18:14 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 560 bytes --]

They fail because loops cannot be vectorized due to the lack of arithmetic 
operations for V8QI.  They pass on SPARC 64-bit because the operations are 
transformed to use the word mode.

Tested on SPARC/Solaris 9, SPARC64/Solaris 10 and x86/Linux, applied on the 
mainline and 4.4 branch.


2009-11-10  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc.dg/vect/vect-multitypes-5.c: XFAIL on SPARC 32-bit.
	* gcc.dg/vect/vect-multitypes-6.c: Likewise.
	* gcc.dg/vect/vect-multitypes-12.c: Likewise.
	* gcc.dg/vect/slp-multitypes-3.c: Likewise.


-- 
Eric Botcazou

[-- Attachment #2: p.diff --]
[-- Type: text/x-diff, Size: 2661 bytes --]

Index: gcc.dg/vect/vect-multitypes-5.c
===================================================================
--- gcc.dg/vect/vect-multitypes-5.c	(revision 154059)
+++ gcc.dg/vect/vect-multitypes-5.c	(working copy)
@@ -48,6 +48,6 @@ int main (void)
   return main1 ();
 }
 
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail { sparc*-*-* && ilp32 } } } } */
 /* { dg-final { cleanup-tree-dump "vect" } } */
 
Index: gcc.dg/vect/vect-multitypes-6.c
===================================================================
--- gcc.dg/vect/vect-multitypes-6.c	(revision 154059)
+++ gcc.dg/vect/vect-multitypes-6.c	(working copy)
@@ -59,7 +59,7 @@ int main (void)
   return 0;
 }
 
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail { sparc*-*-* && ilp32 } }} } */
 /*  { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 6 "vect" { target vect_no_align } } } */
 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 6 "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 154059)
+++ gcc.dg/vect/slp-multitypes-3.c	(working copy)
@@ -88,7 +88,7 @@ int main (void)
   return 0;
 }
 
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect"  } } */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" } } */
+/* { 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 { cleanup-tree-dump "vect" } } */
   
Index: gcc.dg/vect/vect-multitypes-12.c
===================================================================
--- gcc.dg/vect/vect-multitypes-12.c	(revision 154059)
+++ gcc.dg/vect/vect-multitypes-12.c	(working copy)
@@ -39,6 +39,6 @@ int main (void)
 }
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { target vect_unpack } } } */
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { ! vect_unpack } } } } */
+/* { dg-final { if [ istarget sparc*-*-* ] { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail ilp32 } } else { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { ! vect_unpack } } } } } */
 /* { dg-final { cleanup-tree-dump "vect" } } */
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-10 18:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-10 18:14 XFAIL a few more vectorization tests on SPARC 32-bit Eric Botcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).