[llvm] r311793 - [x86] regenerate checks; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 25 12:25:04 PDT 2017
Author: spatel
Date: Fri Aug 25 12:25:03 2017
New Revision: 311793
URL: http://llvm.org/viewvc/llvm-project?rev=311793&view=rev
Log:
[x86] regenerate checks; NFC
Modified:
llvm/trunk/test/CodeGen/X86/imul-lea-2.ll
llvm/trunk/test/CodeGen/X86/imul-lea.ll
Modified: llvm/trunk/test/CodeGen/X86/imul-lea-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/imul-lea-2.ll?rev=311793&r1=311792&r2=311793&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/imul-lea-2.ll (original)
+++ llvm/trunk/test/CodeGen/X86/imul-lea-2.ll Fri Aug 25 12:25:03 2017
@@ -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
}
+
Modified: llvm/trunk/test/CodeGen/X86/imul-lea.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/imul-lea.ll?rev=311793&r1=311792&r2=311793&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/imul-lea.ll (original)
+++ llvm/trunk/test/CodeGen/X86/imul-lea.ll Fri Aug 25 12:25:03 2017
@@ -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
}
More information about the llvm-commits
mailing list