[Bug target/105480] Vectorized `isnan` appears to trigger FPE on ppc64le

2022-11-10 Thread joseph at codesourcery dot com via Gcc-bugs
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

[Bug target/105480] Vectorized `isnan` appears to trigger FPE on ppc64le

2022-11-09 Thread linkw at gcc dot gnu.org via Gcc-bugs
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 >

[Bug target/105480] Vectorized `isnan` appears to trigger FPE on ppc64le

2022-11-09 Thread joseph at codesourcery dot com via Gcc-bugs
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

[Bug target/105480] Vectorized `isnan` appears to trigger FPE on ppc64le

2022-11-09 Thread rguenth at gcc dot gnu.org via Gcc-bugs
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

[Bug target/105480] Vectorized `isnan` appears to trigger FPE on ppc64le

2022-11-09 Thread linkw at gcc dot gnu.org via Gcc-bugs
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

[Bug target/105480] Vectorized `isnan` appears to trigger FPE on ppc64le

2022-11-09 Thread rguenth at gcc dot gnu.org via Gcc-bugs
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 >

[Bug target/105480] Vectorized `isnan` appears to trigger FPE on ppc64le

2022-11-09 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480 Kewen Lin changed: What|Removed |Added CC||bergner at gcc dot gnu.org,

[Bug target/105480] Vectorized `isnan` appears to trigger FPE on ppc64le

2022-11-07 Thread linkw at gcc dot gnu.org via Gcc-bugs
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

[Bug target/105480] Vectorized `isnan` appears to trigger FPE on ppc64le

2022-11-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105480 Andrew Pinski changed: What|Removed |Added Target|powerpc64le-linux |powerpc64*-linux-* --- Comment #4 from

[Bug target/105480] Vectorized `isnan` appears to trigger FPE on ppc64le

2022-11-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
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

[Bug target/105480] Vectorized `isnan` appears to trigger FPE on ppc64le

2022-05-05 Thread sebastian-gcc at sipsolutions dot net via Gcc-bugs
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

[Bug target/105480] Vectorized `isnan` appears to trigger FPE on ppc64le

2022-05-04 Thread sebastian-gcc at sipsolutions dot net via Gcc-bugs
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 =