[AVX512] add PSLLD and PSLLQ Intrinsic
[oota-llvm.git] / test / CodeGen / X86 / lea-3.ll
1 ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
2 ; RUN: llc < %s -mtriple=x86_64-linux-gnux32 | FileCheck %s
3 ; RUN: llc < %s -mtriple=x86_64-nacl | FileCheck %s
4 ; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s
5
6 ; CHECK: leaq (,[[A0:%rdi|%rcx]],4), %rax
7 define i64 @test2(i64 %a) {
8         %tmp2 = shl i64 %a, 2
9         %tmp3 = or i64 %tmp2, %a
10         ret i64 %tmp3
11 }
12
13 ; CHECK: leal ([[A0]],[[A0]],2), %eax
14 define i32 @test(i32 %a) {
15         %tmp2 = mul i32 %a, 3           ; <i32> [#uses=1]
16         ret i32 %tmp2
17 }
18
19 ; CHECK: leaq (,[[A0]],8), %rax
20 define i64 @test3(i64 %a) {
21         %tmp2 = shl i64 %a, 3
22         ret i64 %tmp2
23 }
24