[PATCH] D22531: [LSV] Add detail to correct-order.ll test.

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 19 14:16:58 PDT 2016


jlebar created this revision.
jlebar added a reviewer: asbirlea.
jlebar added subscribers: arsenm, llvm-commits.

This helps keep us honest -- there were a number of ways we could screw
up and still have passed this test.

https://reviews.llvm.org/D22531

Files:
  test/Transforms/LoadStoreVectorizer/X86/correct-order.ll

Index: test/Transforms/LoadStoreVectorizer/X86/correct-order.ll
===================================================================
--- test/Transforms/LoadStoreVectorizer/X86/correct-order.ll
+++ test/Transforms/LoadStoreVectorizer/X86/correct-order.ll
@@ -3,12 +3,13 @@
 target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
 
 ; CHECK-LABEL: @correct_order(
-; CHECK: bitcast i32*
-; CHECK: load <2 x i32>
-; CHECK: load i32
-; CHECK: bitcast i32*
+; CHECK: [[LOAD_PTR:%[0-9]+]] = bitcast i32* %next.gep1
+; CHECK: load <2 x i32>, <2 x i32>* [[LOAD_PTR]]
+; CHECK: load i32, i32* %next.gep
+; CHECK: [[STORE_PTR:%[0-9]+]] = bitcast i32* %next.gep
 ; CHECK: store <2 x i32>
-; CHECK: load i32
+; CHECK-SAME: <2 x i32>* [[STORE_PTR]]
+; CHECK: load i32, i32* %next.gep1
 define void @correct_order(i32* noalias %ptr) {
   %next.gep = getelementptr i32, i32* %ptr, i64 0
   %next.gep1 = getelementptr i32, i32* %ptr, i64 1


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22531.64560.patch
Type: text/x-patch
Size: 925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160719/6f32af40/attachment.bin>


More information about the llvm-commits mailing list