mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
9aa42cfd01
This patch reworks the AIX call lowering to use CCState. Some defensive errors are added in this patch to protect from emitting bad code for calling convention logic that has not been implemented by design. The use of CCState follows the precedent of other targets and enables the reuse of calling convention logic in LowerFormalArguments, which will be rewritten to also use CCState in a late patch. Patch by Chris Bowler. Differential Revision: https://reviews.llvm.org/D69101
14 lines
387 B
LLVM
14 lines
387 B
LLVM
; RUN: not llc -mtriple powerpc-ibm-aix-xcoff < %s 2>&1 | FileCheck %s
|
|
; RUN: not llc -mtriple powerpc64-ibm-aix-xcoff < %s 2>&1 | FileCheck %s
|
|
|
|
define i8* @nest_receiver(i8* nest %arg) nounwind {
|
|
ret i8* %arg
|
|
}
|
|
|
|
define i8* @nest_caller(i8* %arg) nounwind {
|
|
%result = call i8* @nest_receiver(i8* nest %arg)
|
|
ret i8* %result
|
|
}
|
|
|
|
; CHECK: LLVM ERROR: Nest arguments are unimplemented.
|