https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88575
Richard Biener changed:
What|Removed |Added
Keywords||missed-optimization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88575
--- Comment #3 from Daniel Fruzynski ---
I have tried to compile with -O3 -march=skylake -ffast-math and got this:
[asm]
test(double, double):
vminsd xmm2, xmm0, xmm1
vcmplesdxmm0, xmm0, xmm1
vxorpd xmm1, xmm1,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88575
--- Comment #2 from Daniel Fruzynski ---
Code was compiled with -O3 -march=skylake.
I have tried to add -fno-signed-zeros and -fsigned-zeros, and got the same
output for both cases.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88575
--- Comment #1 from joseph at codesourcery dot com ---
On Sat, 22 Dec 2018, bugzi...@poradnik-webmastera.com wrote:
> In test() gcc is not able to determine that for a==b it does not have to
> evaluate 2nd comparison and can use value of a if