emit_arm64_packed: Implement PackedSelect

This commit is contained in:
Merry 2022-07-27 20:08:11 +01:00 committed by merry
parent ac7908164a
commit 0ebbc4a9c5

View file

@ -386,10 +386,16 @@ void EmitIR<IR::Opcode::PackedAbsDiffSumS8>(oaknut::CodeGenerator& code, EmitCon
template<> template<>
void EmitIR<IR::Opcode::PackedSelect>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) { void EmitIR<IR::Opcode::PackedSelect>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
(void)code; auto args = ctx.reg_alloc.GetArgumentInfo(inst);
(void)ctx;
(void)inst; auto Vresult = ctx.reg_alloc.WriteD(inst);
ASSERT_FALSE("Unimplemented"); auto Vge = ctx.reg_alloc.ReadD(args[0]);
auto Va = ctx.reg_alloc.ReadD(args[1]);
auto Vb = ctx.reg_alloc.ReadD(args[2]);
RegAlloc::Realize(Vresult, Vge, Va, Vb);
code.FMOV(Vresult, Vge); // TODO: Move elimination
code.BSL(Vresult->B8(), Vb->B8(), Va->B8());
} }
} // namespace Dynarmic::Backend::Arm64 } // namespace Dynarmic::Backend::Arm64