Skip to content

Commit

Permalink
[LSV] Add detail to correct-order.ll test.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Justin Lebar committed Jul 19, 2016
1 parent 0ccf06f commit d9446d3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions llvm/test/Transforms/LoadStoreVectorizer/X86/correct-order.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9446d3

Please sign in to comment.