[llvm] r356762 - [x86] auto-generate complete test checks; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 22 08:33:55 PDT 2019
Author: spatel
Date: Fri Mar 22 08:33:55 2019
New Revision: 356762
URL: http://llvm.org/viewvc/llvm-project?rev=356762&view=rev
Log:
[x86] auto-generate complete test checks; NFC
Modified:
llvm/trunk/test/CodeGen/X86/pr32610.ll
Modified: llvm/trunk/test/CodeGen/X86/pr32610.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pr32610.ll?rev=356762&r1=356761&r2=356762&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/pr32610.ll (original)
+++ llvm/trunk/test/CodeGen/X86/pr32610.ll Fri Mar 22 08:33:55 2019
@@ -1,19 +1,40 @@
-; RUN: llc -o - %s | FileCheck %s
-
-; CHECK-LABEL: @pr32610
-; CHECK: movl L_b$non_lazy_ptr, [[BASEREG:%[a-z]+]]
-; CHECK: cmpl ([[BASEREG]]), {{%[a-z]+}}
-; CHECK: cmpl ([[BASEREG]]), {{%[a-z]+}}
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=i386-apple-macosx10.13.0 -o - %s | FileCheck %s
target datalayout = "e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128"
-target triple = "i386-apple-macosx10.13.0"
@c = external local_unnamed_addr global i32, align 4
@b = external local_unnamed_addr global [1 x i32], align 4
@d = external local_unnamed_addr global i32, align 4
-; Function Attrs: norecurse nounwind optsize ssp
-define void @pr32610(i32 %a0, i32 %a1) local_unnamed_addr #0 {
+define void @pr32610(i32 %a0, i32 %a1) #0 {
+; CHECK-LABEL: pr32610:
+; CHECK: ## %bb.0: ## %entry
+; CHECK-NEXT: pushl %ebp
+; CHECK-NEXT: movl %esp, %ebp
+; CHECK-NEXT: pushl %esi
+; CHECK-NEXT: movl 8(%ebp), %ecx
+; CHECK-NEXT: movl L_b$non_lazy_ptr, %edx
+; CHECK-NEXT: xorl %eax, %eax
+; CHECK-NEXT: cmpl (%edx), %ecx
+; CHECK-NEXT: sete %al
+; CHECK-NEXT: xorl %esi, %esi
+; CHECK-NEXT: incl %esi
+; CHECK-NEXT: cmpl $0, 12(%ebp)
+; CHECK-NEXT: cmovel %esi, %eax
+; CHECK-NEXT: cmpl (%edx), %ecx
+; CHECK-NEXT: cmovnel %esi, %eax
+; CHECK-NEXT: movl L_c$non_lazy_ptr, %ecx
+; CHECK-NEXT: movl %eax, (%ecx)
+; CHECK-NEXT: movl (%edx), %eax
+; CHECK-NEXT: testl %eax, %eax
+; CHECK-NEXT: movl $2, %ecx
+; CHECK-NEXT: cmovnel %eax, %ecx
+; CHECK-NEXT: movl L_d$non_lazy_ptr, %eax
+; CHECK-NEXT: movl %ecx, (%eax)
+; CHECK-NEXT: popl %esi
+; CHECK-NEXT: popl %ebp
+; CHECK-NEXT: retl
entry:
%0 = load i32, i32* getelementptr ([1 x i32], [1 x i32]* @b, i32 0, i32 undef), align 4, !tbaa !1
%cmp = icmp eq i32 %a0, %0
More information about the llvm-commits
mailing list