[Bug c/120937] floating-point arithmetic can result zero with incorrect sign

2025-07-02 Thread madams846 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120937 --- Comment #4 from Marc Adams --- Sorry, you are correct and I am wrong. The result is subnormal negative and rounds to -0. Thanks for your help.

[Bug c/120937] floating-point arithmetic can result zero with incorrect sign

2025-07-02 Thread madams846 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120937 --- Comment #3 from Marc Adams --- Sorry, you are correct and I am wrong. The result is subnormal negative and rounds to -0. Thanks for your help.

[Bug c/120937] floating-point arithmetic can result zero with incorrect sign

2025-07-02 Thread madams846 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120937 --- Comment #2 from Marc Adams --- The floating-point multiply is exact, no rounding, for type float and longer. Please check that the operations with these values have no rounding for yourself. Even if the multiply had rounding IEEE rules say

[Bug c/120937] floating-point arithmetic can result zero with incorrect sign

2025-07-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120937 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED