]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
simplify-rtx.c (simplify_binary_operation_1 <IOR>): Correct bug introduced 2005-12-16.
authorAlan Modra <amodra@bigpond.net.au>
Fri, 16 Dec 2005 23:50:42 +0000 (23:50 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Fri, 16 Dec 2005 23:50:42 +0000 (10:20 +1030)
* simplify-rtx.c (simplify_binary_operation_1 <IOR>): Correct bug
introduced 2005-12-16.

From-SVN: r108697

gcc/ChangeLog
gcc/simplify-rtx.c

index 4f36c02e47f859601071f48d9766f3dfe34c45fc..f0417bab50195b7d44156c0999166c95119f604c 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-17  Alan Modra  <amodra@bigpond.net.au>
+
+       * simplify-rtx.c (simplify_binary_operation_1 <IOR>): Correct bug
+       introduced 2005-12-16.
+
 2005-12-16  Steven Bosscher  <stevenb@suse.de>
 
        PR rtl-optimization/23837
index 7e9f771e40b9cefbf54a9806dde35bec40c90e53..3c5da5e9aebf164119a9d5099556ca9f08eeda22 100644 (file)
@@ -1972,7 +1972,7 @@ simplify_binary_operation_1 (enum rtx_code code, enum machine_mode mode,
           && (INTVAL (XEXP (SUBREG_REG (opleft), 1)) + INTVAL (XEXP (opright, 1))
               == GET_MODE_BITSIZE (mode)))
         return gen_rtx_ROTATE (mode, XEXP (opright, 0),
-                               XEXP (SUBREG_REG (opright), 1));
+                               XEXP (SUBREG_REG (opleft), 1));
 
       /* If we have (ior (and (X C1) C2)), simplify this by making
         C1 as small as possible if C1 actually changes.  */