llvm.org GIT mirror llvm / 0588b41
[x86] regenerate checks; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311793 91177308-0d34-0410-b5e6-96231b3b80d8 Sanjay Patel 2 years ago
2 changed file(s) with 20 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s
0 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
1 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
12
2 ; CHECK-NOT: imul
33
44 define i64 @t1(i64 %a) nounwind readnone {
5 ; CHECK-LABEL: t1:
6 ; CHECK: # BB#0: # %entry
7 ; CHECK-NEXT: leaq (%rdi,%rdi,8), %rax
8 ; CHECK-NEXT: leaq (%rax,%rax,8), %rax
9 ; CHECK-NEXT: retq
510 entry:
611 %0 = mul i64 %a, 81
7 ; CHECK: lea
8 ; CHECK: lea
912 ret i64 %0
1013 }
1114
1215 define i64 @t2(i64 %a) nounwind readnone {
16 ; CHECK-LABEL: t2:
17 ; CHECK: # BB#0: # %entry
18 ; CHECK-NEXT: shlq $3, %rdi
19 ; CHECK-NEXT: leaq (%rdi,%rdi,4), %rax
20 ; CHECK-NEXT: retq
1321 entry:
1422 %0 = mul i64 %a, 40
15 ; CHECK: shl
16 ; CHECK: lea
1723 ret i64 %0
1824 }
25
None ; RUN: llc < %s -mtriple=i686-- | FileCheck %s
0 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
1 ; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s
12
23 declare i32 @foo()
34
45 define i32 @test() {
6 ; CHECK-LABEL: test:
7 ; CHECK: # BB#0:
8 ; CHECK-NEXT: calll foo
9 ; CHECK-NEXT: leal (%eax,%eax,8), %eax
10 ; CHECK-NEXT: retl
511 %tmp.0 = tail call i32 @foo( )
612 %tmp.1 = mul i32 %tmp.0, 9
7 ; CHECK-NOT: mul
8 ; CHECK: lea
913 ret i32 %tmp.1
1014 }
1115