mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
7d5652dcd5
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118864 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
309 B
LLVM
16 lines
309 B
LLVM
; RUN: llc -march=mips -mcpu=4ke < %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
|
|
}
|