summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Mips/mips64instrs.ll
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2011-10-03 20:01:11 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2011-10-03 20:01:11 +0000
commit04d3762ff111085e21cb8f8570e68dff7f847b6d (patch)
treed40a0b111256d36a93af800361cbe2c42a763233 /test/CodeGen/Mips/mips64instrs.ll
parent36787939b27d9b238e10fc4ba42cb621003a5a31 (diff)
downloadexternal_llvm-04d3762ff111085e21cb8f8570e68dff7f847b6d.zip
external_llvm-04d3762ff111085e21cb8f8570e68dff7f847b6d.tar.gz
external_llvm-04d3762ff111085e21cb8f8570e68dff7f847b6d.tar.bz2
Add support for 64-bit integer multiply instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141017 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/mips64instrs.ll')
-rw-r--r--test/CodeGen/Mips/mips64instrs.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/mips64instrs.ll b/test/CodeGen/Mips/mips64instrs.ll
index 67776aa..98aff52 100644
--- a/test/CodeGen/Mips/mips64instrs.ll
+++ b/test/CodeGen/Mips/mips64instrs.ll
@@ -70,3 +70,16 @@ entry:
ret i64 %xor
}
+define i64 @f12(i64 %a, i64 %b) nounwind readnone {
+entry:
+; CHECK: mult
+ %mul = mul nsw i64 %b, %a
+ ret i64 %mul
+}
+
+define i64 @f13(i64 %a, i64 %b) nounwind readnone {
+entry:
+; CHECK: mult
+ %mul = mul i64 %b, %a
+ ret i64 %mul
+}