[Bug target/97086] aix: ceilf and truncf do not preserve the sign bit when output is rounded to 0

2020-10-13 Thread mfarazma.ext at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97086 --- Comment #3 from m farazma --- Sorry the above example needs to be changed to this in order to reproduce the bug: ``` #include #include int main(){ float a = -0.0; std::cout << nearbyintf(a) << std::endl; return 0; } ```

[Bug target/97086] aix: ceilf and truncf do not preserve the sign bit when output is rounded to 0

2020-10-13 Thread mfarazma.ext at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97086 --- Comment #2 from m farazma --- Wanted to point out the same happens when using "nearbyint": ``` #include #include int main(){ std::cout << nearbyintf(-0) << std::endl; return 0; } ``` expected: -0 actual: 0

[Bug target/97086] aix: ceilf and truncf do not preserve the sign bit when output is rounded to 0

2020-09-17 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97086 Andrew Pinski changed: What|Removed |Added Component|c++ |target --- Comment #1 from Andrew