[Bug tree-optimization/101479] vectorized impossible conditional floating point operations still cause traps (-ffast-math, -O3)

2021-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101479 --- Comment #5 from Andrew Pinski --- (In reply to Simon Thornington from comment #4) > I'll add that changing close_to_zero from > > fabs(x) < 0.5 > > to > > x == 0.0 || fabs(x) < 0.5 > > everything starts to work as I'd expect again... Y

[Bug tree-optimization/101479] vectorized impossible conditional floating point operations still cause traps (-ffast-math, -O3)

2021-07-16 Thread Simon.Thornington at tssecurities dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101479 --- Comment #4 from Simon Thornington --- I'll add that changing close_to_zero from fabs(x) < 0.5 to x == 0.0 || fabs(x) < 0.5 everything starts to work as I'd expect again...

[Bug tree-optimization/101479] vectorized impossible conditional floating point operations still cause traps (-ffast-math, -O3)

2021-07-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101479 --- Comment #3 from Andrew Pinski --- If you want -ffast-math and fetestexcept still, add -ftrapping-math to the end of the command line.

[Bug tree-optimization/101479] vectorized impossible conditional floating point operations still cause traps (-ffast-math, -O3)

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