http://llvm.org/bugs/show_bug.cgi?id=22473

            Bug ID: 22473
           Summary: LLVM not using cmpb for unsigned char comparison
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Small reproduction:
  bool f(unsigned char* a, unsigned char b) { return a[0] == b; }

LLVM translates this to
        movzbl        (%rdi), %eax
        cmpl        %esi, %eax

GCC instead does
          cmpb    %dil, (%rsi)

Which according to IACA is better.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to