aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-06-16 13:52:36 +0930
committerAlan Modra <amodra@gcc.gnu.org>2010-06-16 13:52:36 +0930
commit1db2f288b1ccd3f0f432838be99dfd71ccf5b6b7 (patch)
tree797660903fa58ce1a3b2ed4d378cfb1ff90c73cd
parent39f579c7cfbde641ebd5942d96750874bad34234 (diff)
downloadgcc-1db2f288b1ccd3f0f432838be99dfd71ccf5b6b7.zip
gcc-1db2f288b1ccd3f0f432838be99dfd71ccf5b6b7.tar.gz
gcc-1db2f288b1ccd3f0f432838be99dfd71ccf5b6b7.tar.bz2
re PR tree-optimization/44507 (vectorization ANDs array elements together incorrectly)
PR tree-optimization/44507 * gcc.dg/vect/pr44507.c (seeIf256ByteArrayIsConstant): Correct cast. From-SVN: r160821
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/vect/pr44507.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 0263635..01e43d3 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.dg/vect/pr44507.c b/gcc/testsuite/gcc.dg/vect/pr44507.c
index e53ba30..50c4853 100644
--- a/gcc/testsuite/gcc.dg/vect/pr44507.c
+++ b/gcc/testsuite/gcc.dg/vect/pr44507.c
@@ -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;
}