https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100929
Bug ID: 100929
Summary: gcc fails to optimize less to min for SIMD code
Product: gcc
Version: og10 (devel/omp/gcc-10)
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: denis.yaroshevskij at gmail dot com
Target Milestone: ---
Stand alone float - x86 example:
https://godbolt.org/z/vr3cjvY5G
Using a library x86 float, int, aarch64: https://godbolt.org/z/zPP48vzrq
less + blend or greater + blend should become min/max.