Hi Savin,
I've committed your patch for PR59784; the fix seems small enough to
accept directly. Thanks a lot for catching this.
Thanks,
Chung-Lin
2014-01-30 Savin Zlobec <[email protected]>
PR target/59784
* config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
SFmode to DFmode case.
Index: config/nios2/nios2.c
===================================================================
--- config/nios2/nios2.c (revision 207296)
+++ config/nios2/nios2.c (working copy)
@@ -2066,7 +2066,8 @@ nios2_fpu_insn_asm (enum n2fpu_code code)
}
else
{
- op1 = "%0"; op2 = "%1";
+ op1 = (dst_mode == DFmode ? "%D0" : "%0");
+ op2 = "%1";
op3 = (num_operands == 2 ? "zero" : "%2");
}
}