2 ; RUN: llvm-as < %s | llc -march=x86-64 | grep {leal (%rdi,%rdi,2), %eax}
3 define i32 @test(i32 %a) {
4 %tmp2 = mul i32 %a, 3 ; <i32> [#uses=1]
8 ; RUN: llvm-as < %s | llc -march=x86-64 | grep {leaq (,%rdi,4), %rax}
9 define i64 @test2(i64 %a) {
11 %tmp3 = or i64 %tmp2, %a
15 ;; TODO! LEA instead of shift + copy.
16 define i64 @test3(i64 %a) {