Commit 808cc417 by Richard Sandiford Committed by Richard Sandiford

rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.

gcc/
	* rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.

From-SVN: r139207
parent b7e2f896
2008-08-18 Richard Sandiford <rdsandiford@googlemail.com>
* rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
2008-08-18 Tomas Bily <tbily@suse.cz> 2008-08-18 Tomas Bily <tbily@suse.cz>
* tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P. * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
......
...@@ -3241,7 +3241,8 @@ subreg_offset_representable_p (unsigned int xregno, enum machine_mode xmode, ...@@ -3241,7 +3241,8 @@ subreg_offset_representable_p (unsigned int xregno, enum machine_mode xmode,
{ {
struct subreg_info info; struct subreg_info info;
subreg_get_info (xregno, xmode, offset, ymode, &info); subreg_get_info (xregno, xmode, offset, ymode, &info);
return info.representable_p; return (info.representable_p
&& HARD_REGNO_MODE_OK (xregno + info.offset, ymode));
} }
/* Return the final regno that a subreg expression refers to. */ /* Return the final regno that a subreg expression refers to. */
......
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