frontend/ir/ir_emitter: Amend FPRecipExponent to handle half-precision floating point

This commit is contained in:
Lioncash 2019-03-09 17:36:00 -05:00 committed by MerryMage
parent 974fbf0677
commit bd892ec4ef
5 changed files with 17 additions and 4 deletions

View file

@ -728,6 +728,10 @@ static void EmitFPRecipExponent(BlockOfCode& code, EmitContext& ctx, IR::Inst* i
code.CallFunction(&FP::FPRecipExponent<FPT>);
}
void EmitX64::EmitFPRecipExponent16(EmitContext& ctx, IR::Inst* inst) {
EmitFPRecipExponent<u16>(code, ctx, inst);
}
void EmitX64::EmitFPRecipExponent32(EmitContext& ctx, IR::Inst* inst) {
EmitFPRecipExponent<u32>(code, ctx, inst);
}