summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Mips
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2010-11-12 00:38:32 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2010-11-12 00:38:32 +0000
commit03c0330176ccf6b4ca1464133064beadcc466f3a (patch)
tree00d65238cc8fd293fb5a1b6be05fc71c6287ef11 /llvm/test/CodeGen/Mips
parent8a7f4dafe596c3489e883e8ef61b6758be84b6e8 (diff)
downloadbcm5719-llvm-03c0330176ccf6b4ca1464133064beadcc466f3a.tar.gz
bcm5719-llvm-03c0330176ccf6b4ca1464133064beadcc466f3a.zip
Enable mips32 mul instruction. Patch by Akira Hatanaka <ahatanaka@mips.com>
llvm-svn: 118864
Diffstat (limited to 'llvm/test/CodeGen/Mips')
-rw-r--r--llvm/test/CodeGen/Mips/2010-11-09-Mul.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/2010-11-09-Mul.ll b/llvm/test/CodeGen/Mips/2010-11-09-Mul.ll
new file mode 100644
index 00000000000..65a10b5836c
--- /dev/null
+++ b/llvm/test/CodeGen/Mips/2010-11-09-Mul.ll
@@ -0,0 +1,15 @@
+; RUN: llc -march=mips -mcpu=4ke < %s | FileCheck %s
+
+; CHECK: mul $2, $5, $4
+define i32 @mul1(i32 %a, i32 %b) nounwind readnone {
+entry:
+ %mul = mul i32 %b, %a
+ ret i32 %mul
+}
+
+; CHECK: mul $2, $5, $4
+define i32 @mul2(i32 %a, i32 %b) nounwind readnone {
+entry:
+ %mul = mul nsw i32 %b, %a
+ ret i32 %mul
+}
OpenPOWER on IntegriCloud