blob: 422064967819f297859f59aff78cb3c6dead3ef5 [file] [log] [blame]
Tanya Lattner307f46e2008-03-18 04:14:37 +00001; RUN: llvm-as < %s | opt -scalarrepl
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner307f46e2008-03-18 04:14:37 +00003define i32 @test() {
4 %X = alloca { [4 x i32] } ; <{ [4 x i32] }*> [#uses=1]
5 %Y = getelementptr { [4 x i32] }* %X, i64 0, i32 0, i64 2 ; <i32*> [#uses=2]
6 store i32 4, i32* %Y
7 %Z = load i32* %Y ; <i32> [#uses=1]
8 ret i32 %Z
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009}
Tanya Lattner307f46e2008-03-18 04:14:37 +000010