Skip to content

Commit 2c5db9a

Browse files
committed
Fix check for constantexpr GEP instead of an instruction
1 parent 1d4ccd6 commit 2c5db9a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/test/CodeGen/DirectX/flatten-array.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@ define void @two_index_gep() {
202202

203203
define void @two_index_gep_const() {
204204
; CHECK-LABEL: define void @two_index_gep_const(
205-
; CHECK-NEXT: [[GEP_PTR:%.*]] = getelementptr inbounds nuw [4 x float], ptr addrspace(3) @g.1dim, i32 0, i32 3
206-
; CHECK-NEXT: load float, ptr addrspace(3) [[GEP_PTR]], align 4
205+
; CHECK-NEXT: load float, ptr addrspace(3) getelementptr inbounds nuw ([4 x float], ptr addrspace(3) @g.1dim, i32 0, i32 3), align 4
207206
; CHECK-NEXT: ret void
208207
%1 = getelementptr inbounds nuw [2 x [2 x float]], ptr addrspace(3) @g, i32 0, i32 1, i32 1
209208
%3 = load float, ptr addrspace(3) %1, align 4

0 commit comments

Comments
 (0)