mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 22:43:29 +00:00
68bae4ff19
ConstantExpr::getGetElementPtr method folds two getelementptr instructions when possible. llvm-svn: 10758
12 lines
533 B
Plaintext
12 lines
533 B
Plaintext
; RUN: llvm-as < %s | llvm-dis | not grep 'getelementptr.*getelementptr'
|
|
|
|
%struct.TUVVertex = type { short, short, short, short }
|
|
%struct.TTriangleItem = type { sbyte*, sbyte*, [3 x %struct.TUVVertex] }
|
|
|
|
%data_triangleItems = internal constant [2908 x %struct.TTriangleItem] zeroinitializer
|
|
|
|
void %foo() {
|
|
store short 0, short* getelementptr ([3 x %struct.TUVVertex]* getelementptr ([2908 x %struct.TTriangleItem]* %data_triangleItems, long 0, long 0, ubyte 2), long 0, long 0, ubyte 0)
|
|
ret void
|
|
}
|