From 443a31dc017021d5ea85a492e3e95996a5b53a99 Mon Sep 17 00:00:00 2001 From: erich Date: Sun, 9 Oct 1994 16:39:43 +0000 Subject: [PATCH] (reload_outdf): Don't emit an add insn if the address is just a register. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8244 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/arm/arm.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index e72acd31c85..5ace5267a58 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; -- 2.11.4.GIT