Commit d6f23738 by Richard Sandiford Committed by Richard Sandiford

regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.

gcc/
	* regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.

From-SVN: r176558
parent fec3cad3
2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
* regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
2011-07-21 Kai Tietz <ktietz@redhat.com> 2011-07-21 Kai Tietz <ktietz@redhat.com>
* tree-ssa-propagate.c (substitute_and_fold): Use * tree-ssa-propagate.c (substitute_and_fold): Use
......
...@@ -418,10 +418,9 @@ maybe_mode_change (enum machine_mode orig_mode, enum machine_mode copy_mode, ...@@ -418,10 +418,9 @@ maybe_mode_change (enum machine_mode orig_mode, enum machine_mode copy_mode,
offset = ((WORDS_BIG_ENDIAN ? wordoffset : 0) offset = ((WORDS_BIG_ENDIAN ? wordoffset : 0)
+ (BYTES_BIG_ENDIAN ? byteoffset : 0)); + (BYTES_BIG_ENDIAN ? byteoffset : 0));
return gen_rtx_raw_REG (new_mode, regno += subreg_regno_offset (regno, orig_mode, offset, new_mode);
regno + subreg_regno_offset (regno, orig_mode, if (HARD_REGNO_MODE_OK (regno, new_mode))
offset, return gen_rtx_raw_REG (new_mode, regno);
new_mode));
} }
return NULL_RTX; return NULL_RTX;
} }
......
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