summaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-17 16:18:26 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-17 16:18:26 +0000
commit5e74a7c7ee848c07f2562c4d69a1df5c75f4c21b (patch)
tree20df5fa5ffecab85f4306ec0d13f08477de3fac7 /gcc/simplify-rtx.c
parent142b767b49b610393af0a6d2b4a0141f38c814af (diff)
downloadgcc-5e74a7c7ee848c07f2562c4d69a1df5c75f4c21b.tar.gz
* simplify_rtx.c (simplify_subreg): Fix simplification of nested subregs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42202 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r--gcc/simplify-rtx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index c4dee23c9a9..44cfc3b7e32 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -2332,11 +2332,12 @@ simplify_subreg (outermode, op, innermode, byte)
}
/* Recurse for futher possible simplifications. */
- new = simplify_subreg (outermode, op, GET_MODE (op),
+ new = simplify_subreg (outermode, SUBREG_REG (op),
+ GET_MODE (SUBREG_REG (op)),
final_offset);
if (new)
return new;
- return gen_rtx_SUBREG (outermode, op, final_offset);
+ return gen_rtx_SUBREG (outermode, SUBREG_REG (op), final_offset);
}
/* SUBREG of a hard register => just change the register number