[PATCH] D34935: [X86] Convert test "extractelement-legalization-store-ordering.ll" to be "update_llc_test_checks" tool friendly. NFC.

Gadi Haber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 3 07:34:10 PDT 2017


gadi.haber created this revision.

NFC commit.
Converting the Codegen test "extractelement-legalization-store-ordering.ll" to be "update_llc_test_checks" friendly.

The changes to the test are needed for an upcoming scheduling patch.


Repository:
  rL LLVM

https://reviews.llvm.org/D34935

Files:
  test/CodeGen/X86/extractelement-legalization-store-ordering.ll


Index: test/CodeGen/X86/extractelement-legalization-store-ordering.ll
===================================================================
--- test/CodeGen/X86/extractelement-legalization-store-ordering.ll
+++ test/CodeGen/X86/extractelement-legalization-store-ordering.ll
@@ -1,36 +1,37 @@
-; RUN: llc < %s -mtriple i386-apple-darwin -mcpu=yonah | FileCheck %s
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=i386-apple-darwin -mcpu=yonah | FileCheck %s
 
 target datalayout = "e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128"
 
 ; Make sure we don't break load/store ordering when turning an extractelement
 ; into loads, off the stack or a previous store.
 ; Be very explicit about the ordering/stack offsets.
 
-; CHECK-LABEL: test_extractelement_legalization_storereuse:
-; CHECK:      # BB#0
-; CHECK-NEXT: pushl %ebx
-; CHECK-NEXT: pushl %edi
-; CHECK-NEXT: pushl %esi
-; CHECK-NEXT: movl 16(%esp), %eax
-; CHECK-NEXT: movl 24(%esp), %ecx
-; CHECK-NEXT: movl 20(%esp), %edx
-; CHECK-NEXT: paddd (%edx), %xmm0
-; CHECK-NEXT: movdqa %xmm0, (%edx)
-; CHECK-NEXT:	movl	(%edx), %esi
-; CHECK-NEXT:	movl	4(%edx), %edi
-; CHECK-NEXT:	shll	$4, %ecx
-; CHECK-NEXT:	movl	8(%edx), %ebx
-; CHECK-NEXT:	movl	12(%edx), %edx
-; CHECK-NEXT: movl %esi, 12(%eax,%ecx)
-; CHECK-NEXT: movl %edi, (%eax,%ecx)
-; CHECK-NEXT: movl %ebx, 8(%eax,%ecx)
-; CHECK-NEXT: movl %edx, 4(%eax,%ecx)
-; CHECK-NEXT: popl %esi
-; CHECK-NEXT: popl %edi
-; CHECK-NEXT: popl %ebx
-; CHECK-NEXT: retl
-
 define void @test_extractelement_legalization_storereuse(<4 x i32> %a, i32* nocapture %x, i32* nocapture readonly %y, i32 %i) #0 {
+; CHECK-LABEL: test_extractelement_legalization_storereuse:
+; 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:    movl {{[0-9]+}}(%esp), %ecx
+; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %edx
+; CHECK-NEXT:    paddd (%edx), %xmm0
+; CHECK-NEXT:    movdqa %xmm0, (%edx)
+; CHECK-NEXT:    movl (%edx), %esi
+; CHECK-NEXT:    movl 4(%edx), %edi
+; CHECK-NEXT:    shll $4, %ecx
+; CHECK-NEXT:    movl 8(%edx), %ebx
+; CHECK-NEXT:    movl 12(%edx), %edx
+; CHECK-NEXT:    movl %esi, 12(%eax,%ecx)
+; CHECK-NEXT:    movl %edi, (%eax,%ecx)
+; CHECK-NEXT:    movl %ebx, 8(%eax,%ecx)
+; CHECK-NEXT:    movl %edx, 4(%eax,%ecx)
+; CHECK-NEXT:    popl %esi
+; CHECK-NEXT:    popl %edi
+; CHECK-NEXT:    popl %ebx
+; CHECK-NEXT:    retl
+; CHECK-NEXT:    ## -- End function
 entry:
   %0 = bitcast i32* %y to <4 x i32>*
   %1 = load <4 x i32>, <4 x i32>* %0, align 16


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34935.105040.patch
Type: text/x-patch
Size: 2640 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170703/a13da403/attachment.bin>


More information about the llvm-commits mailing list