+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
{
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
{
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