OSDN Git Service

PR tree-optimization/44507
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Jun 2010 04:22:36 +0000 (04:22 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Jun 2010 04:22:36 +0000 (04:22 +0000)
* gcc.dg/vect/pr44507.c (seeIf256ByteArrayIsConstant): Correct cast.

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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr44507.c

index 0263635..01e43d3 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-16  Alan Modra  <amodra@gmail.com>
+
+       PR tree-optimization/44507
+       * gcc.dg/vect/pr44507.c (seeIf256ByteArrayIsConstant): Correct cast.
+
 2010-06-15  Jason Merrill  <jason@redhat.com>
 
        * g++.dg/overload/arg3.C: Adjust error locations.
index e53ba30..50c4853 100644 (file)
@@ -16,7 +16,7 @@ int seeIf256ByteArrayIsConstant(
            index < 64;
            index += (int)sizeof(unsigned int))
         {
-          curVal = *((unsigned long *)(&pArray[index]));
+          curVal = *((unsigned int *)(&pArray[index]));
           orVal = orVal | curVal;
           andVal = andVal & curVal;
         }