public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/95441] New: Failure to reuse flag from float compare
@ 2020-05-30 20:17 gabravier at gmail dot com
0 siblings, 0 replies; only message in thread
From: gabravier at gmail dot com @ 2020-05-30 20:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95441
Bug ID: 95441
Summary: Failure to reuse flag from float compare
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: gabravier at gmail dot com
Target Milestone: ---
int f(double x)
{
return (x < 0) - (x > 0);
}
With -Ofast, GCC outputs this :
f(double):
pxor xmm1, xmm1
xor eax, eax
comisd xmm1, xmm0
seta al
xor edx, edx
comisd xmm0, xmm1
seta dl
sub eax, edx
ret
LLVM outputs this :
f(double):
xorpd xmm1, xmm1
xor eax, eax
xor ecx, ecx
ucomisd xmm0, xmm1
setb al
seta cl
sub eax, ecx
ret
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-30 20:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-30 20:17 [Bug target/95441] New: Failure to reuse flag from float compare gabravier at gmail dot com
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).