This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR46274
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 3 Nov 2010 14:13:47 +0100 (CET)
- Subject: [PATCH] Fix PR46274
Tested on x86_64-unknown-linux-gnu, applied.
Richard.
2010-11-03 Richard Guenther <rguenther@suse.de>
PR testsuite/46274
* gcc.dg/tree-ssa/gen-vect-11a.c: Fix operator precedence.
* gcc.dg/vect/vect-19.c: Likewise.
* gcc.dg/vect/vect-17.c: Likewise.
Index: tree-ssa/gen-vect-11a.c
===================================================================
--- tree-ssa/gen-vect-11a.c (revision 166242)
+++ tree-ssa/gen-vect-11a.c (working copy)
@@ -30,7 +30,7 @@ int main ()
/* check results: */
for (i = 0; i < N; i++)
{
- if (ia[i] != ib[i] & ic[i])
+ if (ia[i] != (ib[i] & ic[i]))
abort ();
}
Index: vect/vect-19.c
===================================================================
--- vect/vect-19.c (revision 166242)
+++ vect/vect-19.c (working copy)
@@ -81,7 +81,7 @@ main1 ()
/* check results: */
for (i = 0; i <N; i++)
{
- if (ia[i] != ib[i] ^ ic[i])
+ if (ia[i] != (ib[i] ^ ic[i]))
abort ();
}
@@ -95,7 +95,7 @@ main1 ()
/* check results: */
for (i = 0; i <N; i++)
{
- if (ca[i] != cb[i] ^ cc[i])
+ if (ca[i] != (cb[i] ^ cc[i]))
abort ();
}
@@ -109,7 +109,7 @@ main1 ()
/* check results: */
for (i = 0; i <N; i++)
{
- if (sa[i] != sb[i] ^ sc[i])
+ if (sa[i] != (sb[i] ^ sc[i]))
abort ();
}
Index: vect/vect-17.c
===================================================================
--- vect/vect-17.c (revision 166242)
+++ vect/vect-17.c (working copy)
@@ -82,7 +82,7 @@ main1 ()
/* check results: */
for (i = 0; i <N; i++)
{
- if (ia[i] != ib[i] & ic[i])
+ if (ia[i] != (ib[i] & ic[i]))
abort ();
}
@@ -96,7 +96,7 @@ main1 ()
/* check results: */
for (i = 0; i <N; i++)
{
- if (ca[i] != cb[i] & cc[i])
+ if (ca[i] != (cb[i] & cc[i]))
abort ();
}
@@ -110,7 +110,7 @@ main1 ()
/* check results: */
for (i = 0; i <N; i++)
{
- if (sa[i] != sb[i] & sc[i])
+ if (sa[i] != (sb[i] & sc[i]))
abort ();
}