[FastISel][AArch64] Add missing test case for previous commit.
authorJuergen Ributzka <juergen@apple.com>
Mon, 15 Sep 2014 23:47:57 +0000 (23:47 +0000)
committerJuergen Ributzka <juergen@apple.com>
Mon, 15 Sep 2014 23:47:57 +0000 (23:47 +0000)
This adds the missing test case for the previous commit:
Allow handling of vectors during return lowering for little endian machines.

Sorry for the noise.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217847 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/AArch64/fast-isel-vret.ll [new file with mode: 0644]

diff --git a/test/CodeGen/AArch64/fast-isel-vret.ll b/test/CodeGen/AArch64/fast-isel-vret.ll
new file mode 100644 (file)
index 0000000..9ad9227
--- /dev/null
@@ -0,0 +1,9 @@
+; RUN: llc -mtriple=aarch64-apple-darwin -fast-isel -fast-isel-abort -verify-machineinstrs < %s | FileCheck %s
+
+; Test that we don't abort fast-isle for ret
+define <8 x i8> @ret_v8i8(<8 x i8> %a, <8 x i8> %b) {
+; CHECK-LABEL: ret_v8i8
+; CHECK:       add.8b v0, v0, v1
+  %1 = add <8 x i8> %a, %b
+  ret <8 x i8> %1
+}