mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-11 19:00:45 +08:00
Check for valid use of subreg.
Oked by Richard Henderson. From-SVN: r104649
This commit is contained in:
parent
bd0ffa878a
commit
b166bfd224
@ -1,3 +1,7 @@
|
||||
2005-09-26 Fariborz Jahanian <fjahanian@apple.com>
|
||||
|
||||
* combine.c (make_extraction): Check for valid use of subreg.
|
||||
|
||||
2005-09-26 Uros Bizjak <uros@kss-loka.si>
|
||||
|
||||
PR target/24055
|
||||
|
@ -6314,7 +6314,7 @@ make_extraction (enum machine_mode mode, rtx inner, HOST_WIDE_INT pos,
|
||||
|
||||
/* Avoid creating invalid subregs, for example when
|
||||
simplifying (x>>32)&255. */
|
||||
if (final_word >= GET_MODE_SIZE (inner_mode))
|
||||
if (!validate_subreg (tmode, inner_mode, inner, final_word))
|
||||
return NULL_RTX;
|
||||
|
||||
new = gen_rtx_SUBREG (tmode, inner, final_word);
|
||||
|
Loading…
Reference in New Issue
Block a user