summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/aix-nest-param.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/aix-nest-param.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/aix-nest-param.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/aix-nest-param.ll b/llvm/test/CodeGen/PowerPC/aix-nest-param.ll
new file mode 100644
index 00000000000..8534c80ca64
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/aix-nest-param.ll
@@ -0,0 +1,13 @@
+; 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.
OpenPOWER on IntegriCloud