[Bug target/123027] [14/15/16 Regression] minss is not used with -ffinite-math-only since r14-2699
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 9 07:53:43 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123027
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:e3a60357520bc3d14a098ca748c49c44f97b03f5
commit r16-5978-ge3a60357520bc3d14a098ca748c49c44f97b03f5
Author: Richard Biener <rguenther@suse.de>
Date: Mon Dec 8 10:14:19 2025 +0100
target/123027 - handle min/max expansion when -ffinite-math-only
When we get a <= b ? b : a into ix86_expand_sse_fp_minmax we can
swap and invert this with -ffinite-math-only to get a < b ? a : b.
PR target/123027
* config/i386/i386-expand.cc (ix86_expand_sse_fp_minmax):
With !HONOR_NANS we can handle LE by swapping and inverting.
* gcc.target/i386/pr123027.c: New testcase.
* gcc.dg/torture/pr123027.c: Likewise.
More information about the Gcc-bugs
mailing list