source: icGREP/icgrep-devel/llvm-3.8.0.src/test/Assembler/2004-01-11-getelementptrfolding.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 565 bytes
Line 
1; RUN: llvm-as < %s | llvm-dis | \
2; RUN:   not grep "getelementptr.*getelementptr"
3; RUN: verify-uselistorder %s
4
5%struct.TTriangleItem = type { i8*, i8*, [3 x %struct.TUVVertex] }
6%struct.TUVVertex = type { i16, i16, i16, i16 }
7@data_triangleItems = internal constant [2908 x %struct.TTriangleItem] zeroinitializer; <[2908 x %struct.TTriangleItem]*> [#uses=2]
8
9define void @foo() {
10        store i16 0, i16* getelementptr ([2908 x %struct.TTriangleItem], [2908 x %struct.TTriangleItem]* @data_triangleItems, i64 0, i64 0, i32 2, i64 0, i32 0)
11        ret void
12}
13
Note: See TracBrowser for help on using the repository browser.