Patchwork [testsuite,vector] Patch for gcc.dg/vect/vect-peel-[34].c

login
register
mail settings
Submitter Steve Ellcey
Date Sept. 2, 2010, 5:02 p.m.
Message ID <201009021702.o82H2tg20779@lucas.cup.hp.com>
Download mbox | patch
Permalink /patch/63510/
State New
Headers show

Comments

Steve Ellcey - Sept. 2, 2010, 5:02 p.m.
I will check this patch in as obvious if no one objects. These tests are
trying to vectorize an unaligned access so they need to have an XFAIL for
platforms where that isn't supported and the code isn't vectorized.

Tested on IA64 HP-UX and Linux.

Steve Ellcey
sje@cup.hp.com


2010-09-02  Steve Ellcey  <sje@cup.hp.com>

	* gcc.dg/vect/vect-peel-3.c: XFAIL if vect_no_align.
	* gcc.dg/vect/vect-peel-4.c: Ditto.

Patch

Index: gcc.dg/vect/vect-peel-3.c
===================================================================
--- gcc.dg/vect/vect-peel-3.c	(revision 163437)
+++ gcc.dg/vect/vect-peel-3.c	(working copy)
@@ -50,6 +50,6 @@  int main (void)
 }
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" } } */
-/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" } } */
+/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect"  { xfail vect_no_align } } } */
 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" } } */
 /* { dg-final { cleanup-tree-dump "vect" } } */
Index: gcc.dg/vect/vect-peel-4.c
===================================================================
--- gcc.dg/vect/vect-peel-4.c	(revision 163579)
+++ gcc.dg/vect/vect-peel-4.c	(working copy)
@@ -42,6 +42,6 @@  int main (void)
 }
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" } } */
-/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" } } */
+/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect"  { xfail vect_no_align } } } */
 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 0 "vect" } } */
 /* { dg-final { cleanup-tree-dump "vect" } } */