expr.c (MOVE_BY_PIECES_P): Define condition for deciding to use move_by_pieces.
authorAndrew MacLeod <amacleod@cygnus.com>
Thu, 21 Jan 1999 11:33:44 +0000 (11:33 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Thu, 21 Jan 1999 11:33:44 +0000 (11:33 +0000)
commitfbe1758db29ec4459a0a9bce7827597d37b6523a
tree2dd0db2d241549b740b9698c35b5d5fabd5b22e5
parent0003feb203c94e5ed853432b8c8be9079761244e
expr.c (MOVE_BY_PIECES_P): Define condition for deciding to use move_by_pieces.

* expr.c (MOVE_BY_PIECES_P): Define condition for deciding to use
move_by_pieces.
(MOVE_MAX_PIECES): Define maximum number of bytes to move at once.
(USE_LOAD_POST_INCREMENT, USE_LOAD_PRE_DECREMENT): Define defaults.
(USE_STORE_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Define defaults.
(move_by_pieces): Use new macros.
(emit_block_move): Use new macros.
(clear_by_pieces): Use new macros.
(clear_storage): Use new macros.
(emit_push_insn): Use new macros.
(expand_expr): Use new macros.
* config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_LOAD_PRE_DECREMENT):
Define.
(USE_STORE_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Define.
(MOVE_BY_PIECES_P): Define based on alignment and TARGET_SMALLCODE.
(MOVE_MAX_PIECES): move 8 bytes on SH4.
* tm.texi(MOVE_BY_PIECES_P, MOVE_MAX_PIECES, USE_LOAD_POST_INCREMENT,
USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT,
USE_STORE_PRE_DECREMENT): Describe new macros.

From-SVN: r24801
gcc/ChangeLog
gcc/config/sh/sh.h
gcc/expr.c
gcc/tm.texi