view test/CodeGen/Mips/2010-11-09-Mul.ll @ 33:e4204d083e25

LLVM 3.5
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 14:32:10 +0900
parents 95c75e76d11b
children
line wrap: on
line source

; 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
}