Commit b1675dbd by Jan Hubicka Committed by Jan Hubicka

* i386.md (fixsfsi2, fixdfdi2): Fix previous patch.

From-SVN: r39642
parent f3b43865
Tue Feb 13 20:59:22 CET 2001 Jan Hubicka <jh@suse.cz>
* i386.md (fixsfsi2, fixdfdi2): Fix previous patch.
Tue Feb 13 16:32:20 CET 2001 Jan Hubicka <jh@suse.cz>
* i386.md (fixsfsi2, fixdfdi2): Force operand to register
......
......@@ -4049,8 +4049,10 @@
{
if (TARGET_SSE2)
{
operands[0] = force_reg (SImode, operands[0]);
emit_insn (gen_fix_truncdfsi_sse (operands[0], operands[1]));
rtx out = force_reg (SImode, operands[0]);
emit_insn (gen_fix_truncdfsi_sse (out, operands[1]));
if (out != operands[0])
emit_move_insn (operands[0], out);
DONE;
}
else
......@@ -4071,8 +4073,10 @@
{
if (TARGET_SSE2)
{
operands[0] = force_reg (SImode, operands[0]);
emit_insn (gen_fix_truncsfsi_sse (operands[0], operands[1]));
rtx out = force_reg (SImode, operands[0]);
emit_insn (gen_fix_truncdfsi_sse (out, operands[1]));
if (out != operands[0])
emit_move_insn (operands[0], out);
DONE;
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment