A64: Implement MADD and MSUB

This commit is contained in:
Lioncash
2018-01-23 09:51:57 -05:00
committed by MerryMage
parent b7c5055d42
commit c1a25bfc2f
5 changed files with 51 additions and 2 deletions

View File

@@ -265,6 +265,14 @@ U64 IREmitter::Mul(const U64& a, const U64& b) {
return Inst<U64>(Opcode::Mul64, a, b);
}
U32U64 IREmitter::Mul(const U32U64& a, const U32U64& b) {
if (a.GetType() == Type::U32) {
return Inst<U32>(Opcode::Mul32, a, b);
}
return Inst<U64>(Opcode::Mul64, a, b);
}
U32 IREmitter::And(const U32& a, const U32& b) {
return Inst<U32>(Opcode::And32, a, b);
}