https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480
--- Comment #12 from joseph at codesourcery dot com ---
__builtin_isnan must not raise "invalid" for signaling NaN arguments.
__builtin_isunordered (i.e. UNORDERED / UNORDERED_EXPR; standard macro
isunordered) must raise "invalid" for
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480
--- Comment #11 from Kewen Lin ---
(In reply to jos...@codesourcery.com from comment #10)
> For scalar isnan see bug 66462. (The claim in bug 66462 comment 19 that
> there was ever a working version of that patch ready to go in is
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480
--- Comment #10 from joseph at codesourcery dot com ---
For scalar isnan see bug 66462. (The claim in bug 66462 comment 19 that
there was ever a working version of that patch ready to go in is
incorrect: November 2016 is older than June
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480
--- Comment #9 from Richard Biener ---
(In reply to Kewen Lin from comment #8)
> (In reply to Richard Biener from comment #7)
> > (In reply to Kewen Lin from comment #6)
> > > Both fcmpu and fcmp would trap for sNaN, is it expected with the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480
--- Comment #8 from Kewen Lin ---
(In reply to Richard Biener from comment #7)
> (In reply to Kewen Lin from comment #6)
> > Both fcmpu and fcmp would trap for sNaN, is it expected with the current GCC
> > implementation?
>
> But the key is
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480
--- Comment #7 from Richard Biener ---
(In reply to Kewen Lin from comment #6)
> It's certainly an issue reported here, for one complete fix I did some more
> investigation how the option -ftrapping-math affects things, from what LLVM
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480
Kewen Lin changed:
What|Removed |Added
CC||bergner at gcc dot gnu.org,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480
Kewen Lin changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gnu.org
Ever
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480
Andrew Pinski changed:
What|Removed |Added
Target|powerpc64le-linux |powerpc64*-linux-*
--- Comment #4 from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480
--- Comment #3 from Andrew Pinski ---
Created attachment 53821
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53821=edit
testcase -O3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480
--- Comment #2 from seberg ---
I still owed the correct example: https://godbolt.org/z/33Pj6xvPr
Now I think the cause is the indeed (somewhat understandandable) desire to
optimize away the branching. And not the instruction (I am not sure
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480
--- Comment #1 from seberg ---
Actually, I think I likely misanalyzed, the actual code in question where I
found this was doing something like:
while (n--) {
if (isnan(*input)) {
*out = 1;
}
else {
*out =
12 matches
Mail list logo