aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips/2010-11-09-Mul.ll
blob: dcade3c671db181d76755821b49d55dce101abce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; 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
}