OSDN Git Service

gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 27 Nov 2011 10:14:57 +0000 (10:14 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 27 Nov 2011 10:14:57 +0000 (10:14 +0000)
* config/mips/mips.c (mips16_unextended_reference_p): Test for BLKmode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181762 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mips/mips.c

index 843c446..88ad9d8 100644 (file)
@@ -1,5 +1,9 @@
 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.
        * config/mips/mips.c (mips_emit_binary): Make global.
        (mips_set_mips16_mode): Turn off -mfix-r4000 in MIPS16 mode.
index 3fe91cd..0559a9b 100644 (file)
@@ -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);