From a80259b62cf125b046ffcc3d0898c0768256bdb5 Mon Sep 17 00:00:00 2001 From: bwilson Date: Thu, 26 Aug 2004 17:08:10 +0000 Subject: [PATCH] * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete. (xtensa_expand_block_move): Update comment. (override_options): Remove initialization of xtensa_{ld,st}_opcodes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86626 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/xtensa/xtensa.c | 20 +++++--------------- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 26ba0c68386..a198bab00c2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-08-26 Bob Wilson + + * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete. + (xtensa_expand_block_move): Update comment. + (override_options): Remove initialization of xtensa_{ld,st}_opcodes. + 2004-08026 Richard Earnshaw PR target/13506 diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index 4d210e00a8d..0c29324eeec 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -84,9 +84,7 @@ char xtensa_hard_regno_mode_ok[(int) MAX_MACHINE_MODE][FIRST_PSEUDO_REGISTER]; /* Current frame size calculated by compute_frame_size. */ unsigned xtensa_current_frame_size; -/* Tables of ld/st opcode names for block moves */ -const char *xtensa_ld_opcodes[(int) MAX_MACHINE_MODE]; -const char *xtensa_st_opcodes[(int) MAX_MACHINE_MODE]; +/* Largest block move to handle in-line. */ #define LARGEST_MOVE_RATIO 15 /* Define the structure for the machine field in struct function. */ @@ -1425,10 +1423,10 @@ xtensa_copy_incoming_a7 (rtx opnd) } -/* Try to expand a block move operation to an RTL block move instruction. - If not optimizing or if the block size is not a constant or if the - block is small, the expansion fails and GCC falls back to calling - memcpy(). +/* Try to expand a block move operation to a sequence of RTL move + instructions. If not optimizing, or if the block size is not a + constant, or if the block is too large, the expansion fails and GCC + falls back to calling memcpy(). operands[0] is the destination operands[1] is the source @@ -1775,14 +1773,6 @@ override_options (void) if (!TARGET_BOOLEANS && TARGET_HARD_FLOAT) error ("boolean registers required for the floating-point option"); - /* Set up the tables of ld/st opcode names for block moves. */ - xtensa_ld_opcodes[(int) SImode] = "l32i"; - xtensa_ld_opcodes[(int) HImode] = "l16ui"; - xtensa_ld_opcodes[(int) QImode] = "l8ui"; - xtensa_st_opcodes[(int) SImode] = "s32i"; - xtensa_st_opcodes[(int) HImode] = "s16i"; - xtensa_st_opcodes[(int) QImode] = "s8i"; - xtensa_char_to_class['q'] = SP_REG; xtensa_char_to_class['a'] = GR_REGS; xtensa_char_to_class['b'] = ((TARGET_BOOLEANS) ? BR_REGS : NO_REGS); -- 2.11.0