From d8d8579c26627a2739c38188896f13a2d9bf4144 Mon Sep 17 00:00:00 2001 From: amodra Date: Fri, 16 Dec 2005 23:50:42 +0000 Subject: [PATCH] * simplify-rtx.c (simplify_binary_operation_1 ): Correct bug introduced 2005-12-16. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108697 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/simplify-rtx.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f36c02e47f..f0417bab501 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-12-17 Alan Modra + + * simplify-rtx.c (simplify_binary_operation_1 ): Correct bug + introduced 2005-12-16. + 2005-12-16 Steven Bosscher PR rtl-optimization/23837 diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 7e9f771e40b..3c5da5e9aeb 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -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. */ -- 2.11.0