llvm-project
12 строк · 508.0 Байт
1; RUN: llvm-as < %s | llvm-dis | \
2; RUN: not grep "getelementptr.*getelementptr"
3; RUN: verify-uselistorder %s
4
5%struct.TTriangleItem = type { ptr, ptr, [3 x %struct.TUVVertex] }
6%struct.TUVVertex = type { i16, i16, i16, i16 }
7@data_triangleItems = internal constant [2908 x %struct.TTriangleItem] zeroinitializer; <ptr> [#uses=2]
8
9define void @foo() {
10store i16 0, ptr getelementptr ([2908 x %struct.TTriangleItem], ptr @data_triangleItems, i64 0, i64 0, i32 2, i64 0, i32 0)
11ret void
12}
13
14