aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/codegen-prepare-crash.ll
blob: c3288170cc4fad4be4b167a6c3f66d9f1f5a4058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llc < %s
target triple = "x86_64-unknown-linux-gnu"

@g = external global [10 x i32]

define void @f(i32 %u) {
  %1 = add i32 %u, 4
  br label %P.Proc8.exit

P.Proc8.exit:
  %valueindex35.i = getelementptr [10 x i32]* @g, i32 0, i32 %1
  store i32 %u, i32* %valueindex35.i
  ret void
}