From 1d29a58dd0f00732090d5870f6286f583f9dbd39 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Fri, 29 Aug 2008 04:34:15 +0000 Subject: [PATCH] * config/xtensa/xtensa.md (mulsidi3): Use a temporary register. From-SVN: r139750 --- gcc/ChangeLog | 4 ++++ gcc/config/xtensa/xtensa.md | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 753422f..1fd3468 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2008-08-28 Bob Wilson + + * config/xtensa/xtensa.md (mulsidi3): Use a temporary register. + 2008-08-28 Adam Nemet * config/mips/mips.h (ISA_HAS_BBIT): New macro. diff --git a/gcc/config/xtensa/xtensa.md b/gcc/config/xtensa/xtensa.md index 7d85956b..cffbcd1 100644 --- a/gcc/config/xtensa/xtensa.md +++ b/gcc/config/xtensa/xtensa.md @@ -222,10 +222,11 @@ (any_extend:DI (match_operand:SI 2 "register_operand"))))] "TARGET_MUL32_HIGH" { - emit_insn (gen_mulsi3 (gen_lowpart (SImode, operands[0]), - operands[1], operands[2])); + rtx temp = gen_reg_rtx (SImode); + emit_insn (gen_mulsi3 (temp, operands[1], operands[2])); emit_insn (gen_mulsi3_highpart (gen_highpart (SImode, operands[0]), operands[1], operands[2])); + emit_insn (gen_movsi (gen_lowpart (SImode, operands[0]), temp)); DONE; }) -- 2.7.4