2011-09-10 07:14:58 +08:00
|
|
|
; RUN: llc -march=mips < %s | FileCheck %s
|
2010-11-12 08:38:32 +08:00
|
|
|
|
|
|
|
; 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
|
|
|
|
}
|