summaryrefslogtreecommitdiff
path: root/gcc/config/nios2
diff options
context:
space:
mode:
authorcltang <cltang@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-30 05:51:30 +0000
committercltang <cltang@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-30 05:51:30 +0000
commit3a766d17c9b6fd8c772322aff0ed156db326138c (patch)
treec18448b3a9b8ba7416a6f305c3e7410e1271781e /gcc/config/nios2
parent2a41b9a03583d68eaabf77e1b1baca9f9ed0cc25 (diff)
downloadgcc-3a766d17c9b6fd8c772322aff0ed156db326138c.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207297 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/nios2')
-rw-r--r--gcc/config/nios2/nios2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/nios2/nios2.c b/gcc/config/nios2/nios2.c
index 2116f213098..7603132018c 100644
--- a/gcc/config/nios2/nios2.c
+++ b/gcc/config/nios2/nios2.c
@@ -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");
}
}