2014-06-14 04:26:09 +00:00
|
|
|
; XFAIL: *
|
2014-06-15 01:01:11 +00:00
|
|
|
; REQUIRES: asserts
|
2014-06-14 04:26:09 +00:00
|
|
|
; RUN: llc -march=r600 -mcpu=SI < %s
|
|
|
|
|
2014-06-17 16:53:14 +00:00
|
|
|
define void @large_alloca(i32 addrspace(1)* %out, i32 %x, i32 %y) nounwind {
|
|
|
|
%large = alloca [8192 x i32], align 4
|
|
|
|
%gep = getelementptr [8192 x i32]* %large, i32 0, i32 8191
|
2014-06-14 04:26:09 +00:00
|
|
|
store i32 %x, i32* %gep
|
2014-06-17 16:53:14 +00:00
|
|
|
%gep1 = getelementptr [8192 x i32]* %large, i32 0, i32 %y
|
|
|
|
%0 = load i32* %gep1
|
|
|
|
store i32 %0, i32 addrspace(1)* %out
|
2014-06-14 04:26:09 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|