2014-06-14 06:26:09 +02:00
|
|
|
; XFAIL: *
|
2014-06-15 03:01:11 +02:00
|
|
|
; REQUIRES: asserts
|
2014-06-14 06:26:09 +02:00
|
|
|
; RUN: llc -march=r600 -mcpu=SI < %s
|
|
|
|
|
2014-06-17 18:53:14 +02: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 06:26:09 +02:00
|
|
|
store i32 %x, i32* %gep
|
2014-06-17 18:53:14 +02: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 06:26:09 +02:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|