1; RUN: llc < %s
2target triple = "x86_64-unknown-linux-gnu"
3
4@g = external global [10 x i32]
5
6define void @f(i32 %u) {
7  %1 = add i32 %u, 4
8  br label %P.Proc8.exit
9
10P.Proc8.exit:
11  %valueindex35.i = getelementptr [10 x i32], [10 x i32]* @g, i32 0, i32 %1
12  store i32 %u, i32* %valueindex35.i
13  ret void
14}
15