emit_arm64_packed: Implement {Get,Set}GEFlags
This commit is contained in:
parent
2dce8ea5a8
commit
8f1f1c8f0b
1 changed files with 10 additions and 8 deletions
|
@ -312,18 +312,20 @@ void EmitIR<IR::Opcode::A32OrQFlag>(oaknut::CodeGenerator& code, EmitContext& ct
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
void EmitIR<IR::Opcode::A32GetGEFlags>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
void EmitIR<IR::Opcode::A32GetGEFlags>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
||||||
(void)code;
|
auto Snzcv = ctx.reg_alloc.WriteS(inst);
|
||||||
(void)ctx;
|
RegAlloc::Realize(Snzcv);
|
||||||
(void)inst;
|
|
||||||
ASSERT_FALSE("Unimplemented");
|
code.LDR(Snzcv, Xstate, offsetof(A32JitState, cpsr_ge));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
void EmitIR<IR::Opcode::A32SetGEFlags>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
void EmitIR<IR::Opcode::A32SetGEFlags>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
||||||
(void)code;
|
auto args = ctx.reg_alloc.GetArgumentInfo(inst);
|
||||||
(void)ctx;
|
|
||||||
(void)inst;
|
auto Snzcv = ctx.reg_alloc.ReadS(args[0]);
|
||||||
ASSERT_FALSE("Unimplemented");
|
RegAlloc::Realize(Snzcv);
|
||||||
|
|
||||||
|
code.STR(Snzcv, Xstate, offsetof(A32JitState, cpsr_ge));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
|
|
Loading…
Reference in a new issue