[Bug c++/100929] gcc fails to optimize less to min for SIMD code
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jun 6 14:29:11 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100929
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
Please attach your testcases to the bug report. godbolt links are nice
complements, but not considered sufficient here.
We don't lower the comparison or the blend in GIMPLE (yet). I think Hongtao Liu
is doing blends right now. I don't know if there would be issues for
comparisons (with -ftrapping-math for instance?).
If you write (x<y)?x:y with everything of type __m128, we do generated minps.
More information about the Gcc-bugs
mailing list