summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-04-29 09:37:54 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-04-29 09:37:54 +0000
commit43705683fde4d34af41684ff2b622d8b9cc9c0d3 (patch)
tree24598b2b2cdfe0e2f9ad077043f21c71f7a5da23 /test
parent0f99bc060611d6de502963fcbc668f1c60160a44 (diff)
downloadllvm-43705683fde4d34af41684ff2b622d8b9cc9c0d3.tar.gz
llvm-43705683fde4d34af41684ff2b622d8b9cc9c0d3.tar.bz2
llvm-43705683fde4d34af41684ff2b622d8b9cc9c0d3.tar.xz
AArch64: Mark vector long multiplication as expand.
There are no patterns for this. This was already fixed for ARM64 but I forgot to apply it to AArch64 too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/AArch64/neon-idiv.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/neon-idiv.ll b/test/CodeGen/AArch64/neon-idiv.ll
new file mode 100644
index 0000000000..9c9758a81f
--- /dev/null
+++ b/test/CodeGen/AArch64/neon-idiv.ll
@@ -0,0 +1,14 @@
+; RUN: llc -mtriple=aarch64-none-linux-gnu < %s -mattr=+neon | FileCheck %s
+; RUN: llc -mtriple=arm64-none-linux-gnu < %s -mattr=+neon | FileCheck %s
+
+define <4 x i32> @test1(<4 x i32> %a) {
+ %rem = srem <4 x i32> %a, <i32 7, i32 7, i32 7, i32 7>
+ ret <4 x i32> %rem
+; CHECK-LABEL: test1
+; FIXME: Can we lower this more efficiently?
+; CHECK: mul
+; CHECK: mul
+; CHECK: mul
+; CHECK: mul
+}
+