[Bug tree-optimization/112626] `ABS(a) CMP a` can be optimized
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112626 --- Comment #2 from Andrew Pinski --- For non wrapping case: #define func(opname,op) int abs##opname (int a) { return __builtin_abs(a) op a; } func(le,<=) // a >= 0 func(lt,<) // false func(ge,>=) // true func(gt,>) // a < 0 func(eq,==) // a
[Bug tree-optimization/112626] `ABS(a) CMP a` can be optimized
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112626 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-11-19 Assignee|unassigne