mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-14 09:26:22 +00:00

This requires corresponding clang change. Differential Revision: https://reviews.llvm.org/D40955 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324101 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
638 B
LLVM
15 lines
638 B
LLVM
; RUN: not llc -march=amdgcn < %s 2>&1 | FileCheck -check-prefix=ERROR %s
|
|
; RUN: not llc -march=amdgcn < %s | FileCheck -check-prefix=GCN %s
|
|
|
|
declare void @llvm.memset.p5i8.i32(i8 addrspace(5)* nocapture, i8, i32, i32, i1) #1
|
|
|
|
; ERROR: error: stack size limit exceeded (4294967296) in stack_size_limit
|
|
; GCN: ; ScratchSize: 4294967296
|
|
define amdgpu_kernel void @stack_size_limit() #0 {
|
|
entry:
|
|
%alloca = alloca [1073741823 x i32], align 4, addrspace(5)
|
|
%bc = bitcast [1073741823 x i32] addrspace(5)* %alloca to i8 addrspace(5)*
|
|
call void @llvm.memset.p5i8.i32(i8 addrspace(5)* %bc, i8 9, i32 1073741823, i32 1, i1 true)
|
|
ret void
|
|
}
|