re PR testsuite/49239 (Random gcc.dg/vect/vect-strided-u8-i8-gap4-unknown.c failure)
authorIra Rosen <ira.rosen@linaro.org>
Tue, 31 May 2011 08:15:25 +0000 (08:15 +0000)
committerIra Rosen <irar@gcc.gnu.org>
Tue, 31 May 2011 08:15:25 +0000 (08:15 +0000)
PR testsuite/49239
* gcc.dg/vect/vect-strided-u8-i8-gap4-unknown.c: Initialize the
output array.

From-SVN: r174469

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-strided-u8-i8-gap4-unknown.c

index d9bfc9140112d14a93087ce4e13f3b9d1f4d19d4..3f7b52abf1899674dcea286fd8bf86ab3d0cdd3f 100644 (file)
@@ -1,3 +1,9 @@
+2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
+
+       PR testsuite/49239
+       * gcc.dg/vect/vect-strided-u8-i8-gap4-unknown.c: Initialize the
+       output array.
+
 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        PR target/49186
index a13bc98ba051f3644230c506e25f2bd495085e20..7cfac72d7f11839366ddb2ba807cfe72d44fa076 100644 (file)
@@ -25,6 +25,19 @@ main1 (s *arr, int n)
   s res[N];
   unsigned char x;
 
+  for (i = 0; i < N; i++)
+    {
+      res[i].a = 0;
+      res[i].b = 0;
+      res[i].c = 0;
+      res[i].d = 0;
+      res[i].e = 0;
+      res[i].f = 0;
+      res[i].g = 0;
+      res[i].h = 0;
+      __asm__ volatile ("");
+    }
+
   /* Check peeling for gaps for unknown loop bound.  */
   for (i = 0; i < n; i++)
     {