summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/2009-08-31-TwoRegShuffle.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/2009-08-31-TwoRegShuffle.ll')
-rw-r--r--test/CodeGen/ARM/2009-08-31-TwoRegShuffle.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/2009-08-31-TwoRegShuffle.ll b/test/CodeGen/ARM/2009-08-31-TwoRegShuffle.ll
new file mode 100644
index 0000000..e1e60e6
--- /dev/null
+++ b/test/CodeGen/ARM/2009-08-31-TwoRegShuffle.ll
@@ -0,0 +1,9 @@
+; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s
+; pr4843
+define <4 x i16> @v2regbug(<4 x i16>* %B) nounwind {
+;CHECK: v2regbug:
+;CHECK: vzip.16
+ %tmp1 = load <4 x i16>* %B
+ %tmp2 = shufflevector <4 x i16> %tmp1, <4 x i16> undef, <4 x i32><i32 0, i32 0, i32 1, i32 1>
+ ret <4 x i16> %tmp2
+}
OpenPOWER on IntegriCloud