bolt/deps/llvm-18.1.8/llvm/test/CodeGen/Mips/2010-11-09-Mul.ll
2025-02-14 19:21:04 +01:00

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