summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SystemZ/vec-args-error-08.ll
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2015-05-05 19:30:05 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2015-05-05 19:30:05 +0000
commit5211f9ff4d8f0bb87ace370155d2d4b59e278e39 (patch)
tree2b0be158355187d6433331e13c007c017e9fa7b4 /llvm/test/CodeGen/SystemZ/vec-args-error-08.ll
parentcd2a1b5341a3c42b1a56f8f301bd0de0343b5e8e (diff)
downloadbcm5719-llvm-5211f9ff4d8f0bb87ace370155d2d4b59e278e39.tar.gz
bcm5719-llvm-5211f9ff4d8f0bb87ace370155d2d4b59e278e39.zip
[SystemZ] Mark v1i128 and v1f128 as unsupported
The ABI specifies that <1 x i128> and <1 x fp128> are supposed to be passed in vector registers. We do not yet support those types, and some infrastructure is missing before we can do so. In order to prevent accidentally generating code violating the ABI, this patch adds checks to detect those types and error out if user code attempts to use them. llvm-svn: 236526
Diffstat (limited to 'llvm/test/CodeGen/SystemZ/vec-args-error-08.ll')
-rw-r--r--llvm/test/CodeGen/SystemZ/vec-args-error-08.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/SystemZ/vec-args-error-08.ll b/llvm/test/CodeGen/SystemZ/vec-args-error-08.ll
new file mode 100644
index 00000000000..7b16b9f46e3
--- /dev/null
+++ b/llvm/test/CodeGen/SystemZ/vec-args-error-08.ll
@@ -0,0 +1,12 @@
+; Verify that we detect unsupported single-element vector types.
+
+; RUN: not llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 2>&1 | FileCheck %s
+
+declare <1 x fp128> @bar()
+
+define void @foo() {
+ %res = call <1 x fp128> @bar ()
+ ret void
+}
+
+; CHECK: LLVM ERROR: Unsupported vector argument or return type
OpenPOWER on IntegriCloud