summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SystemZ/ghc-cc-06.ll
blob: 04df248c29f87ded7c6aadce0d8da12ad6c83507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; Check that the GHC calling convention works (s390x)
; At most 2048*sizeof(long)=16384 bytes of stack space may be used
;
; RUN: not llc -mtriple=s390x-ibm-linux < %s 2>&1 | FileCheck %s

define ghccc void @foo() nounwind {
entry:
  alloca [16385 x i8], align 1
  ret void
}

; CHECK: LLVM ERROR: Pre allocated stack space for GHC function is too small
OpenPOWER on IntegriCloud