expr.c (emit_push_insn): Use same max-move-amount for movstrhi and movstrqi as in...
authorHans-Peter Nilsson <hp@axis.se>
Mon, 2 Feb 1998 00:21:46 +0000 (01:21 +0100)
committerJeff Law <law@gcc.gnu.org>
Mon, 2 Feb 1998 00:21:46 +0000 (17:21 -0700)
* expr.c (emit_push_insn): Use same max-move-amount for movstrhi
and movstrqi as in emit_block_move ().

From-SVN: r17588

gcc/ChangeLog
gcc/expr.c

index 930c77c1383400553e644a84962895cf0b2a04eb..48bd10a1c0d98c0d6f8895263f01fa049c1a072c 100644 (file)
@@ -1,3 +1,8 @@
+Mon Feb  2 01:22:46 1998  Hans-Peter Nilsson  <hp@axis.se>
+
+       * expr.c (emit_push_insn): Use same max-move-amount for movstrhi
+       and movstrqi as in emit_block_move ().
+
 Mon Feb  2 00:09:52 1998  Toon Moene  <toon@moene.indiv.nluug.nl>
 
        * config/m68k/x-next: Remove /NextDeveloper/Headers from
index 0c107c0db76fb1111653799f6d72d20a53d52092..468cc3b1ba4981edc0d610481a5f487afbc74bd9 100644 (file)
@@ -2600,8 +2600,8 @@ emit_push_insn (x, mode, type, size, align, partial, reg, extra,
 #ifdef HAVE_movstrqi
          if (HAVE_movstrqi
              && GET_CODE (size) == CONST_INT
-             && ((unsigned) INTVAL (size)
-                 < (1 << (GET_MODE_BITSIZE (QImode) - 1))))
+             && ((unsigned HOST_WIDE_INT) INTVAL (size)
+                 <= GET_MODE_MASK (QImode)))
            {
              rtx pat = gen_movstrqi (gen_rtx_MEM (BLKmode, temp),
                                      xinner, size, GEN_INT (align));
@@ -2615,8 +2615,8 @@ emit_push_insn (x, mode, type, size, align, partial, reg, extra,
 #ifdef HAVE_movstrhi
          if (HAVE_movstrhi
              && GET_CODE (size) == CONST_INT
-             && ((unsigned) INTVAL (size)
-                 < (1 << (GET_MODE_BITSIZE (HImode) - 1))))
+             && ((unsigned HOST_WIDE_INT) INTVAL (size)
+                 <= GET_MODE_MASK (HImode)))
            {
              rtx pat = gen_movstrhi (gen_rtx_MEM (BLKmode, temp),
                                      xinner, size, GEN_INT (align));