From: Bob Wilson Date: Fri, 29 Aug 2008 04:34:15 +0000 (+0000) Subject: * config/xtensa/xtensa.md (mulsidi3): Use a temporary register. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d29a58dd0f00732090d5870f6286f583f9dbd39;p=platform%2Fupstream%2Fgcc.git * config/xtensa/xtensa.md (mulsidi3): Use a temporary register. From-SVN: r139750 --- 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; })