diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2017-08-25 19:25:03 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2017-08-25 19:25:03 +0000 |
| commit | 50a446ef10505fce65b56389af7c7e0f2e5f09b1 (patch) | |
| tree | 52c52dd57fc56e85ecc499582f79c082d338d6cb /llvm/test/CodeGen/X86 | |
| parent | 4917af67b6a51b5df2f97e1c6e7ce3ee4899c4c8 (diff) | |
| download | bcm5719-llvm-50a446ef10505fce65b56389af7c7e0f2e5f09b1.tar.gz bcm5719-llvm-50a446ef10505fce65b56389af7c7e0f2e5f09b1.zip | |
[x86] regenerate checks; NFC
llvm-svn: 311793
Diffstat (limited to 'llvm/test/CodeGen/X86')
| -rw-r--r-- | llvm/test/CodeGen/X86/imul-lea-2.ll | 19 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/imul-lea.ll | 10 |
2 files changed, 20 insertions, 9 deletions
diff --git a/llvm/test/CodeGen/X86/imul-lea-2.ll b/llvm/test/CodeGen/X86/imul-lea-2.ll index 56a42fc658b..a633e453c88 100644 --- a/llvm/test/CodeGen/X86/imul-lea-2.ll +++ b/llvm/test/CodeGen/X86/imul-lea-2.ll @@ -1,19 +1,26 @@ -; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s -; CHECK-NOT: imul define i64 @t1(i64 %a) nounwind readnone { +; CHECK-LABEL: t1: +; CHECK: # BB#0: # %entry +; CHECK-NEXT: leaq (%rdi,%rdi,8), %rax +; CHECK-NEXT: leaq (%rax,%rax,8), %rax +; CHECK-NEXT: retq entry: %0 = mul i64 %a, 81 -; CHECK: lea -; CHECK: lea ret i64 %0 } define i64 @t2(i64 %a) nounwind readnone { +; CHECK-LABEL: t2: +; CHECK: # BB#0: # %entry +; CHECK-NEXT: shlq $3, %rdi +; CHECK-NEXT: leaq (%rdi,%rdi,4), %rax +; CHECK-NEXT: retq entry: %0 = mul i64 %a, 40 -; CHECK: shl -; CHECK: lea ret i64 %0 } + diff --git a/llvm/test/CodeGen/X86/imul-lea.ll b/llvm/test/CodeGen/X86/imul-lea.ll index 0ad7ea66e85..48490074ac3 100644 --- a/llvm/test/CodeGen/X86/imul-lea.ll +++ b/llvm/test/CodeGen/X86/imul-lea.ll @@ -1,12 +1,16 @@ -; RUN: llc < %s -mtriple=i686-- | FileCheck %s +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s declare i32 @foo() define i32 @test() { +; CHECK-LABEL: test: +; CHECK: # BB#0: +; CHECK-NEXT: calll foo +; CHECK-NEXT: leal (%eax,%eax,8), %eax +; CHECK-NEXT: retl %tmp.0 = tail call i32 @foo( ) %tmp.1 = mul i32 %tmp.0, 9 -; CHECK-NOT: mul -; CHECK: lea ret i32 %tmp.1 } |

