From 660f1419f49c5f6f9f2341aac437607a16ad8e7f Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Sun, 9 Oct 1994 16:39:43 +0000 Subject: (reload_outdf): Don't emit an add insn if the address is just a register. From-SVN: r8244 --- gcc/config/arm/arm.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index e72acd3..5ace526 100644 --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -2493,8 +2493,11 @@ (match_operand:SI 2 "s_register_operand" "=&r")] "" " - emit_insn (gen_addsi3 (operands[2], XEXP (XEXP (operands[0], 0), 0), - XEXP (XEXP (operands[0], 0), 1))); + if (GET_CODE (XEXP (operands[0], 0)) == REG) + operands[2] = XEXP (operands[0], 0); + else + emit_insn (gen_addsi3 (operands[2], XEXP (XEXP (operands[0], 0), 0), + XEXP (XEXP (operands[0], 0), 1))); emit_insn (gen_rtx (SET, VOIDmode, gen_rtx (MEM, DFmode, operands[2]), operands[1])); DONE; -- cgit v1.1