From: Jan Hubicka Date: Thu, 17 May 2001 16:18:26 +0000 (+0200) Subject: * simplify_rtx.c (simplify_subreg): Fix simplification of nested subregs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07b5314928c3ff2cd0a49503699525ee2fd9ceff;p=gcc.git * simplify_rtx.c (simplify_subreg): Fix simplification of nested subregs. From-SVN: r42202 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a37e759f954..6f7e0731c58 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Thu May 17 18:17:34 CEST 2001 Jan Hubicka + + * simplify_rtx.c (simplify_subreg): Fix simplification of nested subregs. + 2001-05-17 Gerald Pfeifer * gccbug.in (CATEGORIES): Add "bootstrap". 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