2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-04 20:11:35 +08:00

mips.c (mips16_unextended_reference_p): Test for BLKmode.

gcc/
	* config/mips/mips.c (mips16_unextended_reference_p): Test for BLKmode.

From-SVN: r181762
This commit is contained in:
Richard Sandiford 2011-11-27 10:14:57 +00:00 committed by Richard Sandiford
parent a2ccf3c28c
commit fd2d6b1b16
2 changed files with 5 additions and 1 deletions
gcc
ChangeLog
config/mips

@ -1,3 +1,7 @@
2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
* config/mips/mips.c (mips16_unextended_reference_p): Test for BLKmode.
2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
* config/mips/mips-protos.h (mips_emit_binary): Declare.

@ -2163,7 +2163,7 @@ static bool
mips16_unextended_reference_p (enum machine_mode mode, rtx base,
unsigned HOST_WIDE_INT offset)
{
if (offset % GET_MODE_SIZE (mode) == 0)
if (mode != BLKmode && offset % GET_MODE_SIZE (mode) == 0)
{
if (GET_MODE_SIZE (mode) == 4 && base == stack_pointer_rtx)
return offset < 256U * GET_MODE_SIZE (mode);