From c1f1978f30b4fcbe066850db22a6213c4b3bd779 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 13 May 2003 18:41:27 +0000 Subject: [PATCH] (jump): Use emit_jump_insn. From-SVN: r66772 --- gcc/ChangeLog | 4 ++++ gcc/config/mcore/mcore.md | 32 +++++++++++++++++--------------- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ee180e1ddc0..9f3a51f3c89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-05-13 Nick Clifton + + * config/mcore/mcore.md (jump): Use emit_jump_insn. + 2003-05-13 Ulrich Weigand * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second diff --git a/gcc/config/mcore/mcore.md b/gcc/config/mcore/mcore.md index dd1c614dbf1..6d39db9e7bb 100644 --- a/gcc/config/mcore/mcore.md +++ b/gcc/config/mcore/mcore.md @@ -1896,7 +1896,7 @@ "" " { - emit_insn (gen_jump_real (operand0)); + emit_jump_insn (gen_jump_real (operand0)); DONE; } ") @@ -3462,7 +3462,7 @@ /* for small constant growth, we unroll the code */ if (GET_CODE (operands[1]) == CONST_INT - && INTVAL (operands[1]) < 8*STACK_UNITS_MAXSTEP) + && INTVAL (operands[1]) < 8 * STACK_UNITS_MAXSTEP) { int left = INTVAL(operands[1]); @@ -3470,18 +3470,20 @@ if (left >= STACK_UNITS_MAXSTEP) { rtx tmp = gen_reg_rtx (Pmode); - emit_insn (gen_movsi (tmp, GEN_INT(STACK_UNITS_MAXSTEP))); + emit_insn (gen_movsi (tmp, GEN_INT (STACK_UNITS_MAXSTEP))); do { - rtx memref = gen_rtx (MEM, SImode, stack_pointer_rtx); - MEM_VOLATILE_P (memref) = 1; - emit_insn(gen_subsi3 (stack_pointer_rtx, stack_pointer_rtx, tmp)); - emit_insn(gen_movsi (memref, stack_pointer_rtx)); - left -= STACK_UNITS_MAXSTEP; - } while (left > STACK_UNITS_MAXSTEP); + rtx memref = gen_rtx (MEM, SImode, stack_pointer_rtx); + + MEM_VOLATILE_P (memref) = 1; + emit_insn (gen_subsi3 (stack_pointer_rtx, stack_pointer_rtx, tmp)); + emit_insn (gen_movsi (memref, stack_pointer_rtx)); + left -= STACK_UNITS_MAXSTEP; + } + while (left > STACK_UNITS_MAXSTEP); } /* performs the final adjustment */ - emit_insn(gen_addsi3(stack_pointer_rtx,stack_pointer_rtx,GEN_INT(-left))); + emit_insn (gen_addsi3 (stack_pointer_rtx,stack_pointer_rtx,GEN_INT(-left))); ;; emit_move_insn (operands[0], virtual_stack_dynamic_rtx); DONE; } @@ -3494,8 +3496,8 @@ rtx memref; #if 1 - emit_insn(gen_movsi(tmp, operands[1])); - emit_insn(gen_movsi(step, GEN_INT(STACK_UNITS_MAXSTEP))); + emit_insn (gen_movsi (tmp, operands[1])); + emit_insn (gen_movsi (step, GEN_INT(STACK_UNITS_MAXSTEP))); if (GET_CODE (operands[1]) != CONST_INT) { @@ -3522,14 +3524,14 @@ emit_label (out_label); /* bump the residual */ - emit_insn(gen_subsi3(stack_pointer_rtx, stack_pointer_rtx, tmp)); + emit_insn (gen_subsi3 (stack_pointer_rtx, stack_pointer_rtx, tmp)); ;; emit_move_insn (operands[0], virtual_stack_dynamic_rtx); DONE; #else /* simple one-shot -- ensure register and do a subtract. * this does NOT comply with the ABI. */ - emit_insn(gen_movsi(tmp, operands[1])); - emit_insn(gen_subsi3(stack_pointer_rtx, stack_pointer_rtx, tmp)); + emit_insn (gen_movsi (tmp, operands[1])); + emit_insn (gen_subsi3 (stack_pointer_rtx, stack_pointer_rtx, tmp)); ;; emit_move_insn (operands[0], virtual_stack_dynamic_rtx); DONE; #endif