[llvm] 191f767 - [X86] 2007-03-15-GEP-Idx-Sink.ll - regenerate test checks
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 5 03:33:51 PST 2024
Author: Simon Pilgrim
Date: 2024-03-05T11:33:34Z
New Revision: 191f7678f7a76436b2b368d2c15f5ed61b9c5e2d
URL: https://github.com/llvm/llvm-project/commit/191f7678f7a76436b2b368d2c15f5ed61b9c5e2d
DIFF: https://github.com/llvm/llvm-project/commit/191f7678f7a76436b2b368d2c15f5ed61b9c5e2d.diff
LOG: [X86] 2007-03-15-GEP-Idx-Sink.ll - regenerate test checks
Added:
Modified:
llvm/test/CodeGen/X86/2007-03-15-GEP-Idx-Sink.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/2007-03-15-GEP-Idx-Sink.ll b/llvm/test/CodeGen/X86/2007-03-15-GEP-Idx-Sink.ll
index 5eeb9ed1c868ff..f21aaca7ca5f17 100644
--- a/llvm/test/CodeGen/X86/2007-03-15-GEP-Idx-Sink.ll
+++ b/llvm/test/CodeGen/X86/2007-03-15-GEP-Idx-Sink.ll
@@ -1,13 +1,52 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
; RUN: llc < %s -mtriple=i686-darwin | FileCheck %s
define void @foo(ptr %buf, i32 %size, i32 %col, ptr %p) nounwind {
+; CHECK-LABEL: foo:
+; CHECK: ## %bb.0: ## %entry
+; CHECK-NEXT: pushl %ebx
+; CHECK-NEXT: pushl %edi
+; CHECK-NEXT: pushl %esi
+; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
+; CHECK-NEXT: testl %eax, %eax
+; CHECK-NEXT: jle LBB0_3
+; CHECK-NEXT: ## %bb.1: ## %bb.preheader
+; CHECK-NEXT: movl {{[0-9]+}}(%esp), %ecx
+; CHECK-NEXT: movl {{[0-9]+}}(%esp), %edx
+; CHECK-NEXT: movl {{[0-9]+}}(%esp), %esi
+; CHECK-NEXT: addl $8, %ecx
+; CHECK-NEXT: .p2align 4, 0x90
+; CHECK-NEXT: LBB0_2: ## %bb
+; CHECK-NEXT: ## =>This Inner Loop Header: Depth=1
+; CHECK-NEXT: movl (%esi), %edi
+; CHECK-NEXT: movzbl -8(%ecx), %ebx
+; CHECK-NEXT: movb %bl, (%edi,%edx)
+; CHECK-NEXT: movzbl -7(%ecx), %ebx
+; CHECK-NEXT: movb %bl, 7(%edi,%edx)
+; CHECK-NEXT: movzbl -6(%ecx), %ebx
+; CHECK-NEXT: movb %bl, 5(%edi,%edx)
+; CHECK-NEXT: movzbl -5(%ecx), %ebx
+; CHECK-NEXT: movb %bl, 3(%edi,%edx)
+; CHECK-NEXT: movzbl -4(%ecx), %ebx
+; CHECK-NEXT: movb %bl, 2(%edi,%edx)
+; CHECK-NEXT: movzbl -3(%ecx), %ebx
+; CHECK-NEXT: movb %bl, 1(%edi,%edx)
+; CHECK-NEXT: movzbl -2(%ecx), %ebx
+; CHECK-NEXT: movb %bl, 2(%edi,%edx)
+; CHECK-NEXT: movzbl -1(%ecx), %ebx
+; CHECK-NEXT: movb %bl, 4(%edi,%edx)
+; CHECK-NEXT: movzbl (%ecx), %ebx
+; CHECK-NEXT: movb %bl, 6(%edi,%edx)
+; CHECK-NEXT: addl $4, %esi
+; CHECK-NEXT: addl $9, %ecx
+; CHECK-NEXT: decl %eax
+; CHECK-NEXT: jne LBB0_2
+; CHECK-NEXT: LBB0_3: ## %return
+; CHECK-NEXT: popl %esi
+; CHECK-NEXT: popl %edi
+; CHECK-NEXT: popl %ebx
+; CHECK-NEXT: retl
entry:
-; CHECK-LABEL: @foo
-; CHECK: push
-; CHECK: push
-; CHECK: push
-; CHECK-NOT: push
-
icmp sgt i32 %size, 0 ; <i1>:0 [#uses=1]
br i1 %0, label %bb.preheader, label %return
More information about the llvm-commits
mailing list