[PATCH] Fix gcc.dg/vect/pr56933.c runtime
Richard Biener
rguenther@suse.de
Wed Aug 28 07:45:00 GMT 2013
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 ().
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);
More information about the Gcc-patches
mailing list