[PATCH, nios2, committed] PR59784, fextsd asm output fix

Chung-Lin Tang cltang@codesourcery.com
Thu Jan 30 05:56:00 GMT 2014


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  <savin.zlobec@gmail.com>

        PR target/59784
        * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
        SFmode to DFmode case.
-------------- next part --------------
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");
 	}
     }


More information about the Gcc-patches mailing list