https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126298

            Bug ID: 126298
           Summary: Missed SPACESHIP optimization for PR59429 when b is
                    INTEGER_CST
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kaelfandrew at gmail dot com
  Target Milestone: ---

With -O2:

```
#define CST 10

int
src (int a)
{
  return (a < CST) ? -1 : (a > CST ? 1 : 0);
}
```

GCC does not optimize src () and other r17-1582 functions to SPACESHIP.

Reply via email to