diff options
author | Hans-Peter Nilsson <hp@axis.se> | 1998-02-02 01:21:46 +0100 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-02-01 17:21:46 -0700 |
commit | 7a6df7f924e0070bbcc373e0c67077fb4531c02e (patch) | |
tree | 56566494dd22b0a646eddf712c29487496a3b865 /gcc | |
parent | 8c01d9b6f7925f4e8f81283f9ac4cb03415a58a0 (diff) | |
download | gcc-7a6df7f924e0070bbcc373e0c67077fb4531c02e.zip gcc-7a6df7f924e0070bbcc373e0c67077fb4531c02e.tar.gz gcc-7a6df7f924e0070bbcc373e0c67077fb4531c02e.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/expr.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 930c77c..48bd10a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 @@ -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)); |