public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/59400] New: [SH] gcc.c-torture/compile/pr55921.c fails with -O0 on big endian with FPU
@ 2013-12-05 20:08 olegendo at gcc dot gnu.org
2014-09-12 17:36 ` [Bug target/59400] " olegendo at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: olegendo at gcc dot gnu.org @ 2013-12-05 20:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59400
Bug ID: 59400
Summary: [SH] gcc.c-torture/compile/pr55921.c fails with -O0 on
big endian with FPU
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: olegendo at gcc dot gnu.org
Target: sh*-*-*
The test case gcc.c-torture/compile/pr55921.c has been failing for a while on
big endian targets with an FPU (e.g. SH4) when compiled with -O0.
Little endian seems OK.
typedef union
{
_Complex float cf;
long long ll;
} ucf;
void
foo (ucf *in, ucf *out, _Complex float r)
{
int i;
ucf ucf1;
_Complex float cf;
ucf1.ll = in[i].ll;
__asm ("" : "=r" (cf) : "r" (ucf1.ll));
cf *= r;
__asm ("" : "=r" (ucf1.ll) : "r" (cf));
out[i].ll = ucf1.ll;
}
compiled with -O0 -m4 -mb:
sh_tmp.cpp: In function 'foo':
sh_tmp.cpp:641:3: error: 'asm' operand requires impossible reload
__asm ("" : "=r" (cf) : "r" (ucf1.ll));
^
sh_tmp.cpp:641:3: error: 'asm' operand requires impossible reload
sh_tmp.cpp:643:3: error: 'asm' operand requires impossible reload
__asm ("" : "=r" (ucf1.ll) : "r" (cf));
^
sh_tmp.cpp:643:3: error: 'asm' operand requires impossible reload
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-12 17:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-05 20:08 [Bug target/59400] New: [SH] gcc.c-torture/compile/pr55921.c fails with -O0 on big endian with FPU olegendo at gcc dot gnu.org
2014-09-12 17:36 ` [Bug target/59400] " olegendo 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).