summaryrefslogtreecommitdiff
path: root/test/CodeGen/R600/large-alloca.ll
blob: dd9b6775c082e8290398c662df40b3d71838c23a (plain)
1
2
3
4
5
6
7
8
9
10
11
; XFAIL: *
; REQUIRES: asserts
; RUN: llc -march=r600 -mcpu=SI < %s

define void @large_alloca(i32 addrspace(1)* %out, i32 %x) nounwind {
  %large = alloca [256 x i32], align 4
  %gep = getelementptr [256 x i32]* %large, i32 0, i32 255
  store i32 %x, i32* %gep
  ret void
}