1 ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
2 ; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s
4 ; CHECK: leaq (,[[A0:%rdi|%rcx]],4), %rax
5 define i64 @test2(i64 %a) {
7 %tmp3 = or i64 %tmp2, %a
11 ; CHECK: leal ([[A0]],[[A0]],2), %eax
12 define i32 @test(i32 %a) {
13 %tmp2 = mul i32 %a, 3 ; <i32> [#uses=1]
17 ; CHECK: leaq (,[[A0]],8), %rax
18 define i64 @test3(i64 %a) {