summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoadStoreVectorizer
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-07-19 23:18:59 +0000
committerJustin Lebar <jlebar@google.com>2016-07-19 23:18:59 +0000
commitd9446d3770ec2ec664f72f01f6eba17407475414 (patch)
treec4bd8edec13d1dbd3fdd25c665842a9466661f0f /llvm/test/Transforms/LoadStoreVectorizer
parent0ccf06f467df6d9e47b031fa3c75db1adc5b6290 (diff)
downloadbcm5719-llvm-d9446d3770ec2ec664f72f01f6eba17407475414.tar.gz
bcm5719-llvm-d9446d3770ec2ec664f72f01f6eba17407475414.zip
[LSV] Add detail to correct-order.ll test.
Summary: This helps keep us honest -- there were a number of ways we could screw up and still have passed this test. Reviewers: asbirlea Subscribers: llvm-commits, arsenm Differential Revision: https://reviews.llvm.org/D22531 llvm-svn: 276053
Diffstat (limited to 'llvm/test/Transforms/LoadStoreVectorizer')
-rw-r--r--llvm/test/Transforms/LoadStoreVectorizer/X86/correct-order.ll11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/test/Transforms/LoadStoreVectorizer/X86/correct-order.ll b/llvm/test/Transforms/LoadStoreVectorizer/X86/correct-order.ll
index b98014e76cb..13c0b3874eb 100644
--- a/llvm/test/Transforms/LoadStoreVectorizer/X86/correct-order.ll
+++ b/llvm/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
OpenPOWER on IntegriCloud