Patchwork Fix gcc.dg/vect/pr56933.c runtime

login
register
mail settings
Submitter Richard Guenther
Date Aug. 28, 2013, 7:39 a.m.
Message ID <alpine.LNX.2.00.1308280938290.20077@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/270379/
State New
Headers show

Comments

Richard Guenther - Aug. 28, 2013, 7:39 a.m.
Using check_vect ().

Tested on x86_64-unknown-linux-gnu, applied.

Richard.

2013-08-28  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/56933
	* gcc.dg/vect/pr56933.c: Properly guard runtime with check_vect ().

Patch

Index: gcc/testsuite/gcc.dg/vect/pr56933.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/pr56933.c	(revision 202019)
+++ gcc/testsuite/gcc.dg/vect/pr56933.c	(working copy)
@@ -1,4 +1,7 @@ 
 /* { dg-do run } */
+/* { dg-require-effective-target vect_double } */
+
+#include "tree-vect.h"
 
 extern void abort (void);
 void __attribute__((noinline,noclone))
@@ -17,6 +20,9 @@  int main()
 {
   double b[1024], d[2*1024], f[1024];
   int i;
+
+  check_vect ();
+
   for (i = 0; i < 2*1024; i++)
     d[i] = 1.;
   foo (b, d, f);