[Bug target/100929] gcc fails to optimize less to min for SIMD code
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 19 21:36:02 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100929
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2024-07-19
Ever confirmed|0 |1
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
if_else_int is optimized starting in GCC 14:
_4 = MIN_EXPR <_6, _7>;
if_else_float is still not:
```
_7 = __builtin_ia32_cmpps256 (y_2(D), x_3(D), 17);
_5 = VIEW_CONVERT_EXPR<vector(8) int>(_7);
_4 = _5 < { 0, 0, 0, 0, 0, 0, 0, 0 };
_6 = .VCOND_MASK (_4, y_2(D), x_3(D));
```
But that is a target issue.
More information about the Gcc-bugs
mailing list