[Bug c++/85077] V[248][SD]F abs not optimized to

2018-03-26 Thread kretz at kde dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85077 --- Comment #4 from Matthias Kretz --- Oh, there seems to be a regression in GCC 8. In 7 it works as you say. In 8 I can't get the andps to show up

[Bug c++/85077] V[248][SD]F abs not optimized to

2018-03-26 Thread kretz at kde dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85077 --- Comment #3 from Matthias Kretz --- Ouch, right I didn't think of non-finite values. I.e. -0 < 0 is false... However, this is what I wanted: abs(-inf) -> inf abs( inf) -> inf abs( nan) -> nan abs( -0) -> 0 abs( 0) -> 0 The sign bit manip

[Bug c++/85077] V[248][SD]F abs not optimized to

2018-03-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85077 Richard Biener changed: What|Removed |Added Component|target |c++ --- Comment #2 from Richard Biener