summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/smml.ll
diff options
context:
space:
mode:
authorTim Northover <Tim.Northover@arm.com>2012-05-17 13:12:13 +0000
committerTim Northover <Tim.Northover@arm.com>2012-05-17 13:12:13 +0000
commit44600d708154e09f4e53719f503e2446eb2b7f53 (patch)
treeb100123629890818354c4b33c88095d4d567fdf1 /test/CodeGen/ARM/smml.ll
parente9f5d2ea8b0645baec51d88c65a0e7b8368e3cce (diff)
downloadllvm-44600d708154e09f4e53719f503e2446eb2b7f53.tar.gz
llvm-44600d708154e09f4e53719f503e2446eb2b7f53.tar.bz2
llvm-44600d708154e09f4e53719f503e2446eb2b7f53.tar.xz
Remove incorrect pattern for ARM SMML instruction.
Patch by Meador Inge. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156989 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/smml.ll')
-rw-r--r--test/CodeGen/ARM/smml.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/smml.ll b/test/CodeGen/ARM/smml.ll
new file mode 100644
index 0000000000..99df0d4c96
--- /dev/null
+++ b/test/CodeGen/ARM/smml.ll
@@ -0,0 +1,13 @@
+; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s
+define i32 @f(i32 %a, i32 %b, i32 %c) nounwind readnone ssp {
+entry:
+; CHECK-NOT: smmls
+ %conv4 = zext i32 %a to i64
+ %conv1 = sext i32 %b to i64
+ %conv2 = sext i32 %c to i64
+ %mul = mul nsw i64 %conv2, %conv1
+ %shr5 = lshr i64 %mul, 32
+ %sub = sub nsw i64 %conv4, %shr5
+ %conv3 = trunc i64 %sub to i32
+ ret i32 %conv3
+}