Support allocation of huge stack frame(>2g) on PPC64. For ELFv2 ABI on Linux, quoted from the spec 2.2.3.1 General Stack Frame Requirements > There is no maximum stack frame size defined. On AIX, XL allows such huge frame. Reviewed By: #powerpc, nemanjai Differential Revision: https://reviews.llvm.org/D107886
15 lines
348 B
LLVM
15 lines
348 B
LLVM
; REQUIRES: asserts
|
|
; RUN: not --crash llc -verify-machineinstrs -mtriple=powerpc-unknown-unknown < %s \
|
|
; RUN: 2>&1 | FileCheck %s
|
|
|
|
declare void @bar(i8*)
|
|
|
|
define void @foo(i8 %x) {
|
|
; CHECK: Unhandled stack size
|
|
entry:
|
|
%a = alloca i8, i64 4294967296, align 16
|
|
%b = getelementptr i8, i8* %a, i64 0
|
|
store volatile i8 %x, i8* %b
|
|
ret void
|
|
}
|