From 50a446ef10505fce65b56389af7c7e0f2e5f09b1 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Fri, 25 Aug 2017 19:25:03 +0000 Subject: [x86] regenerate checks; NFC llvm-svn: 311793 --- llvm/test/CodeGen/X86/imul-lea-2.ll | 19 +++++++++++++------ llvm/test/CodeGen/X86/imul-lea.ll | 10 +++++++--- 2 files changed, 20 insertions(+), 9 deletions(-) (limited to 'llvm/test/CodeGen/X86') 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 } -- cgit v1.2.3