Patchwork Fix PR46274

login
register
mail settings
Submitter Richard Guenther
Date Nov. 3, 2010, 1:13 p.m.
Message ID <alpine.LNX.2.00.1011031413220.23074@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/70003/
State New
Headers show

Comments

Richard Guenther - Nov. 3, 2010, 1:13 p.m.
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.

Patch

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 ();
     }