Hi!

When testing SVN valgrind AVX support, I've discovered a bug in
this testcase, which has been initializing only half of the array and
performed testing on the second half of the array with uninitialized random
stack data.

Tested on x86_64-linux and i686-linux, committed to trunk.

2012-06-27  Jakub Jelinek  <ja...@redhat.com>

        * gcc.target/i386/sse4_1-pmuldq.c (TEST): Initialize
        even src1.i and src2.i fields even in the second half of the arrays.

--- gcc/testsuite/gcc.target/i386/sse4_1-pmuldq.c.jj    2008-10-23 
13:20:53.000000000 +0200
+++ gcc/testsuite/gcc.target/i386/sse4_1-pmuldq.c       2012-06-26 
13:06:06.890051299 +0200
@@ -32,7 +32,7 @@ TEST (void)
   int i, sign = 1;
   long long value;
 
-  for (i = 0; i < NUM; i += 2)
+  for (i = 0; i < NUM * 2; i += 2)
     {
       src1.i[i] = i * i * sign;
       src2.i[i] = (i + 20) * sign;

        Jakub

Reply via email to