Check for valid use of subreg.

Oked by Richard Henderson.

From-SVN: r104649
This commit is contained in:
Fariborz Jahanian 2005-09-26 17:42:16 +00:00 committed by Fariborz Jahanian
parent bd0ffa878a
commit b166bfd224
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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);