public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/59784] New: Nios2: Wrong code generation for fextsd custom instruction
@ 2014-01-13 10:39 savin.zlobec at gmail dot com
2014-01-30 5:52 ` [Bug target/59784] " cltang at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: savin.zlobec at gmail dot com @ 2014-01-13 10:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59784
Bug ID: 59784
Summary: Nios2: Wrong code generation for fextsd custom
instruction
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: savin.zlobec at gmail dot com
Created attachment 31819
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31819&action=edit
Fix
The following code:
double f2d(float x) { return (double)x; }
Compiled with -O2 ... -mcustom-frdy=2 ... -mcustom-fextsd=37
Compiles to:
0: 2009c972 custom 37,r4,r4,zero
4: 0009c0b2 custom 2,r4,zero,zero
8: 2005883a mov r2,r4
c: 2807883a mov r3,r5
10: f800283a ret
Note the 'custom 37,r4,r4,zero', should be 'custom 37,r5,r4,zero'.
Patch attached.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug target/59784] Nios2: Wrong code generation for fextsd custom instruction
2014-01-13 10:39 [Bug target/59784] New: Nios2: Wrong code generation for fextsd custom instruction savin.zlobec at gmail dot com
@ 2014-01-30 5:52 ` cltang at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: cltang at gcc dot gnu.org @ 2014-01-30 5:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59784
--- Comment #1 from Chung-Lin Tang <cltang at gcc dot gnu.org> ---
Author: cltang
Date: Thu Jan 30 05:51:30 2014
New Revision: 207297
URL: http://gcc.gnu.org/viewcvs?rev=207297&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/nios2/nios2.c
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-30 5:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-13 10:39 [Bug target/59784] New: Nios2: Wrong code generation for fextsd custom instruction savin.zlobec at gmail dot com
2014-01-30 5:52 ` [Bug target/59784] " cltang at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).