This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix gcc.dg/vect/pr56933.c runtime
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 28 Aug 2013 09:39:00 +0200 (CEST)
- Subject: [PATCH] Fix gcc.dg/vect/pr56933.c runtime
- Authentication-results: sourceware.org; auth=none
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);