* gcc.dg/fold-ior-2.c (fn4): Swap operands.
authorMarek Polacek <polacek@redhat.com>
Tue, 30 Jun 2015 11:05:13 +0000 (11:05 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 30 Jun 2015 11:05:13 +0000 (11:05 +0000)
From-SVN: r225174

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-ior-2.c

index 8716cd3b9f6e789eb7c2cde3d936e03e4fd20406..f14bbb11387b0095262e60da6655f344027d262a 100644 (file)
@@ -1,3 +1,7 @@
+2015-06-30  Marek Polacek  <polacek@redhat.com>
+
+       * gcc.dg/fold-ior-2.c (fn4): Swap operands.
+
 2015-06-30  Tom de Vries  <tom@codesourcery.com>
 
        * gcc.dg/parloops-exit-first-loop-alt-5.c: New test.
index 6abac9ee7b6b7cdb83125cd314e44d746a4633ad..41b372d06fa1faa01e725f44c5203e2097f1dd2e 100644 (file)
@@ -22,7 +22,7 @@ fn3 (unsigned int x)
 unsigned int
 fn4 (unsigned int x)
 {
-  return ~x | x;
+  return x | ~x;
 }
 
 int