[Bug tree-optimization/112626] `ABS(a) CMP a` can be optimized

2024-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
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

2023-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112626 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-11-19 Assignee|unassigne