emit_arm64_a32: Implement A32OrQFlag
This commit is contained in:
parent
a50eb6cf34
commit
02d3a5a242
1 changed files with 7 additions and 4 deletions
|
@ -304,10 +304,13 @@ void EmitIR<IR::Opcode::A32GetCFlag>(oaknut::CodeGenerator& code, EmitContext& c
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
void EmitIR<IR::Opcode::A32OrQFlag>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
void EmitIR<IR::Opcode::A32OrQFlag>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
||||||
(void)code;
|
auto args = ctx.reg_alloc.GetArgumentInfo(inst);
|
||||||
(void)ctx;
|
auto Wflag = ctx.reg_alloc.ReadW(args[0]);
|
||||||
(void)inst;
|
RegAlloc::Realize(Wflag);
|
||||||
ASSERT_FALSE("Unimplemented");
|
|
||||||
|
code.LDR(Wscratch0, Xstate, offsetof(A32JitState, cpsr_q));
|
||||||
|
code.ORR(Wscratch0, Wscratch0, Wflag, LSL, 27);
|
||||||
|
code.STR(Wscratch0, Xstate, offsetof(A32JitState, cpsr_q));
|
||||||
}
|
}
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
|
|
Loading…
Reference in a new issue