re PR target/59784 (Nios2: Wrong code generation for fextsd custom instruction)
authorSavin Zlobec <savin.zlobec@gmail.com>
Thu, 30 Jan 2014 05:51:30 +0000 (05:51 +0000)
committerChung-Lin Tang <cltang@gcc.gnu.org>
Thu, 30 Jan 2014 05:51:30 +0000 (05:51 +0000)
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.

From-SVN: r207297

gcc/ChangeLog
gcc/config/nios2/nios2.c

index ec72eb2014963aac5e5d23a5efa1b5c4f44b933e..5e809dfcaa00c0dee2091e4500ede6bf61d0a162 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2014-01-29  DJ Delorie  <dj@redhat.com>
 
        * config/msp430/msp430.opt (-minrt): New.
index 2116f213098b5f47d1da669833ecca1f99133646..7603132018ce939cc330954872d283da0d7dc345 100644 (file)
@@ -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");
        }
     }