https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125921
Bug ID: 125921
Summary: Missed size optimization of MAX/MIN (x, -1)
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: kaelfandrew at gmail dot com
Target Milestone: ---
Created attachment 64819
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64819&action=edit
C code
https://godbolt.org/z/G4G1TW44r
>From comment 2 of bug 125641, in x86_64, when compiling for -Oz, f2 saves 3
bytes and i2 saves one byte.