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

            Bug ID: 128327
           Summary: spaceshipti4 should be implemented for x86_64
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---
            Target: x86_64

Created attachment 66052
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66052&action=edit
testcase

LLVM produces branchless here:
```
        cmp     rdi, rdx
        mov     rax, rsi
        sbb     rax, rcx
        setl    al
        cmp     rdx, rdi
        sbb     rcx, rsi
        setl    cl
        sub     cl, al
        movsx   eax, cl
```

Seems like GCC could do something similar.

Reply via email to