llvm-6502/test/CodeGen/Mips/2010-11-09-Mul.ll
Akira Hatanaka 33ff5aeaa8 Fix test cases.
Generate code for Mips32r1 unless a Mips32r2 feature is tested.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139433 91177308-0d34-0410-b5e6-96231b3b80d8
2011-09-09 23:14:58 +00:00

16 lines
299 B
LLVM

; RUN: llc -march=mips < %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
}