1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
3 ; RUN: llc < %s -mtriple=x86_64-linux-gnux32 | FileCheck %s
4 ; RUN: llc < %s -mtriple=x86_64-nacl | FileCheck %s
5 ; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s --check-prefix=WIN32
7 define i64 @test2(i64 %a) {
10 ; CHECK-NEXT: leaq (,%rdi,4), %rax
11 ; CHECK-NEXT: orq %rdi, %rax
16 ; WIN32-NEXT: leaq (,%rcx,4), %rax
17 ; WIN32-NEXT: orq %rcx, %rax
20 %tmp3 = or i64 %tmp2, %a
24 define i32 @test(i32 %a) {
27 ; CHECK-NEXT: # kill: def $edi killed $edi def $rdi
28 ; CHECK-NEXT: leal (%rdi,%rdi,2), %eax
33 ; WIN32-NEXT: # kill: def $ecx killed $ecx def $rcx
34 ; WIN32-NEXT: leal (%rcx,%rcx,2), %eax
40 define i64 @test3(i64 %a) {
43 ; CHECK-NEXT: leaq (,%rdi,8), %rax
48 ; WIN32-NEXT: leaq (,%rcx,8), %rax