Files
clang-p2996/llvm/test/CodeGen/SystemZ/ghc-cc-05.ll
Kai Nacke a1710eb3cd [SystemZ][NFC] Opaque pointer migration.
The LIT test cases were migrated with the script provided by
Nikita Popov.

No manual changes were made. Committed without review since
no functional changes, after consultation with uweigand.
2022-10-11 21:09:43 +00:00

17 lines
505 B
LLVM

; Check that the GHC calling convention works (s390x)
; Variable-sized stack allocations are not supported in GHC calling convention
;
; RUN: not --crash llc -mtriple=s390x-ibm-linux < %s 2>&1 | FileCheck %s
define ghccc void @foo() nounwind {
entry:
%0 = call ptr @llvm.stacksave()
call void @llvm.stackrestore(ptr %0)
ret void
}
declare ptr @llvm.stacksave()
declare void @llvm.stackrestore(ptr)
; CHECK: LLVM ERROR: Variable-sized stack allocations are not supported in GHC calling convention