* config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.

From-SVN: r139750
This commit is contained in:
Bob Wilson 2008-08-29 04:34:15 +00:00 committed by Bob Wilson
parent d215563273
commit 1d29a58dd0
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2008-08-28 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
* config/mips/mips.h (ISA_HAS_BBIT): New macro.

View File

@ -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_<u>mulsi3_highpart (gen_highpart (SImode, operands[0]),
operands[1], operands[2]));
emit_insn (gen_movsi (gen_lowpart (SImode, operands[0]), temp));
DONE;
})