1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s --check-prefix=LNX1
3 ; RUN: llc < %s -mtriple=x86_64-linux-gnux32 | FileCheck %s --check-prefix=LNX2
4 ; RUN: llc < %s -mtriple=x86_64-nacl | FileCheck %s --check-prefix=NACL
5 ; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s --check-prefix=WIN
7 define i64 @test2(i64 %a) {
10 ; LNX1-NEXT: leaq (,%rdi,4), %rax
11 ; LNX1-NEXT: orq %rdi, %rax
16 ; LNX2-NEXT: leaq (,%rdi,4), %rax
17 ; LNX2-NEXT: orq %rdi, %rax
22 ; NACL-NEXT: leaq (,%rdi,4), %rax
23 ; NACL-NEXT: orq %rdi, %rax
28 ; WIN-NEXT: leaq (,%rcx,4), %rax
29 ; WIN-NEXT: orq %rcx, %rax
32 %tmp3 = or i64 %tmp2, %a
36 define i32 @test(i32 %a) {
39 ; LNX1-NEXT: # kill: def $edi killed $edi def $rdi
40 ; LNX1-NEXT: leal (%rdi,%rdi,2), %eax
45 ; LNX2-NEXT: # kill: def $edi killed $edi def $rdi
46 ; LNX2-NEXT: leal (%rdi,%rdi,2), %eax
51 ; NACL-NEXT: # kill: def $edi killed $edi def $rdi
52 ; NACL-NEXT: leal (%rdi,%rdi,2), %eax
57 ; WIN-NEXT: # kill: def $ecx killed $ecx def $rcx
58 ; WIN-NEXT: leal (%rcx,%rcx,2), %eax
64 define i64 @test3(i64 %a) {
67 ; LNX1-NEXT: leaq (,%rdi,8), %rax
72 ; LNX2-NEXT: leaq (,%rdi,8), %rax
77 ; NACL-NEXT: leaq (,%rdi,8), %rax
82 ; WIN-NEXT: leaq (,%rcx,8), %rax