1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/CodeGen/SystemZ/ghc-cc-03.ll
Ulrich Weigand ec2ceb39a7 [SystemZ] Add GHC calling convention
This is a special calling convention to be used by the GHC compiler.

Author: Stefan Schulze Frielinghaus
Differential Revision: https://reviews.llvm.org/D69024
2019-11-04 13:45:51 +01:00

12 lines
297 B
LLVM

; Check that the GHC calling convention works (s390x)
; In GHC calling convention the only allowed return type is void
;
; RUN: not llc -mtriple=s390x-ibm-linux < %s 2>&1 | FileCheck %s
define ghccc i64 @foo() nounwind {
entry:
ret i64 42
}
; CHECK: LLVM ERROR: GHC functions return void only