Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
      2 ; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s
      3 
      4 ; CHECK: leaq (,[[A0:%rdi|%rcx]],4), %rax
      5 define i64 @test2(i64 %a) {
      6         %tmp2 = shl i64 %a, 2
      7 	%tmp3 = or i64 %tmp2, %a
      8         ret i64 %tmp3
      9 }
     10 
     11 ; CHECK: leal ([[A0]],[[A0]],2), %eax
     12 define i32 @test(i32 %a) {
     13         %tmp2 = mul i32 %a, 3           ; <i32> [#uses=1]
     14         ret i32 %tmp2
     15 }
     16 
     17 ; CHECK: leaq (,[[A0]],8), %rax
     18 define i64 @test3(i64 %a) {
     19         %tmp2 = shl i64 %a, 3
     20         ret i64 %tmp2
     21 }
     22 
     23