* simplify_rtx.c (simplify_subreg): Fix simplification of nested subregs.
From-SVN: r42202
This commit is contained in:
parent
e18748c0e5
commit
07b5314928
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu May 17 18:17:34 CEST 2001 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* simplify_rtx.c (simplify_subreg): Fix simplification of nested subregs.
|
||||
|
||||
2001-05-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
|
||||
|
||||
* gccbug.in (CATEGORIES): Add "bootstrap".
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue