* gcc.dg/vect/vect-99.c: Include stdlib.h and tree-vect.h.
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Feb 2008 09:07:13 +0000 (09:07 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Feb 2008 09:07:13 +0000 (09:07 +0000)
(main): Call check_vect and foo.  Check array values after
the call to foo.
* gcc.dg/vect/vect-117.c: Call check_vect.
* gcc.dg/vect/no-vfa-pr29145.c: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132613 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/no-vfa-pr29145.c
gcc/testsuite/gcc.dg/vect/vect-117.c
gcc/testsuite/gcc.dg/vect/vect-99.c

index 4ef9dbf..c6efd12 100644 (file)
@@ -1,3 +1,11 @@
+2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
+
+       * gcc.dg/vect/vect-99.c: Include stdlib.h and tree-vect.h.
+       (main): Call check_vect and foo.  Check array values after
+       the call to foo.
+       * gcc.dg/vect/vect-117.c: Call check_vect.
+       * gcc.dg/vect/no-vfa-pr29145.c: Ditto.
+
 2008-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        * gcc.dg/tree-ssa/ssa-pre-10.c: Use -fno-finite-math-only on
index 3a4b126..283e74f 100644 (file)
@@ -31,6 +31,8 @@ int main(void)
   int a[1002];
   int b[1002];
 
+  check_vect ();
+
   for (i = 0; i < 1002; ++i) {
     a[i] = b[i] = i;
   }
index bf1e52c..920e293 100644 (file)
@@ -42,6 +42,8 @@ int main (void)
 { 
   int i,j;
 
+  check_vect ();
+
   foo = 0;
   main1 (a, N);
 
index aedbae4..d29023c 100644 (file)
@@ -1,5 +1,8 @@
 /* { dg-require-effective-target vect_int } */
 
+#include <stdlib.h>
+#include "tree-vect.h"
+
 int ca[100];
 
 __attribute__ ((noinline))
@@ -13,6 +16,16 @@ void foo (int n)
 
 int main (void)
 {
+  int i;
+
+  check_vect ();
+
+  foo(100);
+
+  for (i = 0; i < 100; ++i) {
+    if (ca[i] != 2)
+      abort();
+  }
   return 0;
 }