From: Hans-Peter Nilsson Date: Mon, 2 Feb 1998 00:21:46 +0000 (+0100) Subject: expr.c (emit_push_insn): Use same max-move-amount for movstrhi and movstrqi as in... X-Git-Tag: prereleases/egcs-1.1-prerelease~2542 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a6df7f924e0070bbcc373e0c67077fb4531c02e;p=thirdparty%2Fgcc.git expr.c (emit_push_insn): Use same max-move-amount for movstrhi and movstrqi as in emit_block_move (). * expr.c (emit_push_insn): Use same max-move-amount for movstrhi and movstrqi as in emit_block_move (). From-SVN: r17588 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 930c77c13834..48bd10a1c0d9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Mon Feb 2 01:22:46 1998 Hans-Peter Nilsson + + * 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 * config/m68k/x-next: Remove /NextDeveloper/Headers from diff --git a/gcc/expr.c b/gcc/expr.c index 0c107c0db76f..468cc3b1ba49 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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));