Commit b166bfd2 by Fariborz Jahanian Committed by Fariborz Jahanian

Check for valid use of subreg.

Oked by Richard Henderson.

From-SVN: r104649
parent bd0ffa87
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment