Skip to content

Commit 733ae8e

Browse files
committed
Add a test to ensure there are no errors
1 parent 3faecb6 commit 733ae8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/test/CodeGen/DirectX/issue-145408-gep-struct-fix.ll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ define void @test_no_transform_of_struct() {
88
; CHECK-NEXT: [[ENTRY:.*:]]
99
; CHECK-NEXT: [[OUTPUTSIZESLOCAL_I:%.*]] = alloca [[STRUCT_RAWSTRUCT8D:%.*]], align 4
1010
; CHECK-NEXT: [[ARRAYINIT_ELEMENT13_I76:%.*]] = getelementptr inbounds nuw [1 x %struct.RawStruct8D], ptr [[OUTPUTSIZESLOCAL_I]], i32 0, i32 0
11+
; CHECK-NEXT: [[ARRAYINIT_ELEMENT13_I76_I1:%.*]] = getelementptr inbounds nuw [8 x i32], ptr [[ARRAYINIT_ELEMENT13_I76]], i32 0, i32 1
1112
; CHECK-NEXT: ret void
1213
;
1314
entry:
1415
%outputSizesLocal.i = alloca %struct.RawStruct8D, align 4
1516
%arrayinit.element13.i76 = getelementptr inbounds nuw [1 x %struct.RawStruct8D], ptr %outputSizesLocal.i, i32 0, i32 0
17+
%arrayinit.element13.i76.i1 = getelementptr inbounds nuw [8 x i32], ptr %arrayinit.element13.i76, i32 0, i32 1
1618
ret void
1719
}

0 commit comments

Comments
 (0)