https://llvm.org/bugs/show_bug.cgi?id=28513

            Bug ID: 28513
           Summary: [x86] go to eleven
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedb...@nondot.org
          Reporter: spatel+l...@rotateright.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

int foo(int x) {
  return x * 11;
}

define i32 @foo(i32 %x) {
  %mul = mul nsw i32 %x, 11
  ret i32 %mul
}

------------------------------------------------------------------------------

GCC 6.1:
        leal    (%rdi,%rdi,4), %eax
        leal    (%rdi,%rax,2), %eax
        ret


ICC 13:
        lea       (%rdi,%rdi,8), %edx                           #2.14
        lea       (%rdx,%rdi,2), %eax                           #2.14
        ret                                                     #2.14

LLVM:
    imull    $11, %edi, %eax
    retq

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to