13 lines · plain
1; Check that the GHC calling convention works (s390x)2; At most 2048*sizeof(long)=16384 bytes of stack space may be used3;4; RUN: not --crash llc -mtriple=s390x-ibm-linux < %s 2>&1 | FileCheck %s5 6define ghccc void @foo() nounwind {7entry:8 alloca [16385 x i8], align 19 ret void10}11 12; CHECK: LLVM ERROR: Pre allocated stack space for GHC function is too small13