summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/aix-byval-param.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/aix-byval-param.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/aix-byval-param.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/aix-byval-param.ll b/llvm/test/CodeGen/PowerPC/aix-byval-param.ll
new file mode 100644
index 00000000000..951475438d5
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/aix-byval-param.ll
@@ -0,0 +1,16 @@
+; 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
+
+%struct.S = type { i32, i32 }
+
+define void @bar() {
+entry:
+ %s1 = alloca %struct.S, align 4
+ %agg.tmp = alloca %struct.S, align 4
+ call void @foo(%struct.S* byval(%struct.S) align 4 %agg.tmp)
+ ret void
+}
+
+declare void @foo(%struct.S* byval(%struct.S) align 4)
+
+; CHECK: LLVM ERROR: Passing structure by value is unimplemented.
OpenPOWER on IntegriCloud