From: Sanjay Patel Date: Fri, 25 Aug 2017 19:25:03 +0000 (+0000) Subject: [x86] regenerate checks; NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0588b413e4c0b7e2afa45bbbe4e821fc6b8d094a;p=llvm [x86] regenerate checks; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311793 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/imul-lea-2.ll b/test/CodeGen/X86/imul-lea-2.ll index 56a42fc658b..a633e453c88 100644 --- a/test/CodeGen/X86/imul-lea-2.ll +++ b/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/test/CodeGen/X86/imul-lea.ll b/test/CodeGen/X86/imul-lea.ll index 0ad7ea66e85..48490074ac3 100644 --- a/test/CodeGen/X86/imul-lea.ll +++ b/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 }