summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHao Liu <Hao.Liu@arm.com>2013-12-30 02:12:46 +0000
committerHao Liu <Hao.Liu@arm.com>2013-12-30 02:12:46 +0000
commit43ffcc571cfd300b6a84d0ce0ca42cb783d5c8d9 (patch)
treeac52cef97991dddd702cd063a6fe4ef7fc60138b /test
parent3f8f3c9feb2e10e1f936dee23973b56bc361722d (diff)
downloadllvm-43ffcc571cfd300b6a84d0ce0ca42cb783d5c8d9.tar.gz
llvm-43ffcc571cfd300b6a84d0ce0ca42cb783d5c8d9.tar.bz2
llvm-43ffcc571cfd300b6a84d0ce0ca42cb783d5c8d9.tar.xz
[AArch64]Can't select shift left 0 of type v1i64
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/AArch64/neon-shl-ashr-lshr.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/neon-shl-ashr-lshr.ll b/test/CodeGen/AArch64/neon-shl-ashr-lshr.ll
index 13912f417c..af2ab4d424 100644
--- a/test/CodeGen/AArch64/neon-shl-ashr-lshr.ll
+++ b/test/CodeGen/AArch64/neon-shl-ashr-lshr.ll
@@ -182,4 +182,18 @@ define <2 x i64> @ashr.v2i64(<2 x i64> %a, <2 x i64> %b) {
; CHECK: sshl v{{[0-9]+}}.2d, v{{[0-9]+}}.2d, v{{[0-9]+}}.2d
%c = ashr <2 x i64> %a, %b
ret <2 x i64> %c
+}
+
+define <1 x i64> @shl.v1i64.0(<1 x i64> %a) {
+; CHECK-LABEL: shl.v1i64.0:
+; CHECK: shl d{{[0-9]+}}, d{{[0-9]+}}, #0
+ %c = shl <1 x i64> %a, zeroinitializer
+ ret <1 x i64> %c
+}
+
+define <2 x i32> @shl.v2i32.0(<2 x i32> %a) {
+; CHECK-LABEL: shl.v2i32.0:
+; CHECK: shl v{{[0-9]+}}.2s, v{{[0-9]+}}.2s, #0
+ %c = shl <2 x i32> %a, zeroinitializer
+ ret <2 x i32> %c
} \ No newline at end of file