public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/113243] New: mips: Wrong code for pr91323.c
@ 2024-01-05 15:34 xry111 at gcc dot gnu.org
0 siblings, 0 replies; only message in thread
From: xry111 at gcc dot gnu.org @ 2024-01-05 15:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113243
Bug ID: 113243
Summary: mips: Wrong code for pr91323.c
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: xry111 at gcc dot gnu.org
Target Milestone: ---
In pr91323.c:
int
__attribute__ ((noinline, noclone))
f3 (float a, float b)
{
return a < b || a > b;
}
is compiled to:
test(float, float):
c.ueq.s $fcc5,$f12,$f14
li $2,1
jr $31
movt $2,$0,$fcc5
for mips64r2, and
test(float, float):
cmp.ne.s $f12,$f12,$f14
bc1nez $f12,$L4
li $2,1
move $2,$0
$L4:
jrc $31
for mips64r6. Both are incorrect because both cmp.ne.s and c.ueq.s do not
raise INVALID exception with qNaN inputs, but in C "<" and ">" should raise
INVALID for qNaN inputs.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-05 15:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-05 15:34 [Bug target/113243] New: mips: Wrong code for pr91323.c xry111 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).