[llvm] 84875f6 - [PowerPC][AIX] Add test for returning a vector type. [NFC]
Sean Fertile via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 31 08:26:04 PDT 2020
Author: Sean Fertile
Date: 2020-08-31T11:14:17-04:00
New Revision: 84875f69410252f8f0718f39d4978abbecdfd015
URL: https://github.com/llvm/llvm-project/commit/84875f69410252f8f0718f39d4978abbecdfd015
DIFF: https://github.com/llvm/llvm-project/commit/84875f69410252f8f0718f39d4978abbecdfd015.diff
LOG: [PowerPC][AIX] Add test for returning a vector type. [NFC]
Shows error produced when trying to return a vector, which is not
yet supported.
Added:
llvm/test/CodeGen/PowerPC/aix-vector-return.ll
Modified:
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/PowerPC/aix-vector-return.ll b/llvm/test/CodeGen/PowerPC/aix-vector-return.ll
new file mode 100644
index 000000000000..6c41005028ce
--- /dev/null
+++ b/llvm/test/CodeGen/PowerPC/aix-vector-return.ll
@@ -0,0 +1,12 @@
+; RUN: not --crash llc --verify-machineinstrs -mtriple powerpc-ibm-aix-xcoff \
+; RUN: -mattr=+altivec 2>&1 < %s | FileCheck %s
+
+; RUN: not --crash llc --verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff \
+; RUN: -mattr=+altivec 2>&1 < %s | FileCheck %s
+
+; CHECK: LLVM ERROR: UPDATE_VRSAVE is unexpected on AIX.
+
+define dso_local <4 x i32> @test() local_unnamed_addr #0 {
+ entry:
+ ret <4 x i32> zeroinitializer
+}
More information about the llvm-commits
mailing list