[Bug c++/104865] Wrong code for conditional expression on VAX or with -ffast-math

2022-04-02 Thread macro at orcam dot me.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104865 --- Comment #7 from Maciej W. Rozycki --- Well, it's not clear to me whether the reserved operand as defined by the VAX floating-point architecture ought be considered an sNaN given that there is no qNaN. Also a reserved operand causes a fault

[Bug c++/104865] Wrong code for conditional expression on VAX or with -ffast-math

2022-04-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104865 --- Comment #6 from Jonathan Wakely --- OK, maybe I should not have used __builtin_nan in the test. The bug is in the rest of the code though, isn't it? Replace the __builtin_nan with a function returning the same sNaN, does the test still fail?

[Bug c++/104865] Wrong code for conditional expression on VAX or with -ffast-math

2022-04-02 Thread macro at orcam dot me.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104865 --- Comment #5 from Maciej W. Rozycki --- Wrong question then. Should `__builtin_nan' even compile on non-IEEE-754 FP targets that don't have a qNaN? And I'll reply to myself. According to our manual: "-- Built-in Function: double __builtin_

[Bug c++/104865] Wrong code for conditional expression on VAX or with -ffast-math

2022-04-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104865 --- Comment #4 from Jonathan Wakely --- They can still have NaNs.

[Bug c++/104865] Wrong code for conditional expression on VAX or with -ffast-math

2022-04-02 Thread macro at orcam dot me.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104865 Maciej W. Rozycki changed: What|Removed |Added CC||macro at orcam dot me.uk --- Commen

[Bug c++/104865] Wrong code for conditional expression on VAX or with -ffast-math

2022-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104865 Andrew Pinski changed: What|Removed |Added Summary|Wrong code for conditional |Wrong code for conditional

[Bug c++/104865] Wrong code for conditional expression on VAX

2022-03-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104865 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0