mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 15:40:00 +01:00
backend/arm64: Implement LeastSignificantByte
This commit is contained in:
parent
a33d186fea
commit
ec3c597591
@ -95,10 +95,13 @@ void EmitIR<IR::Opcode::LeastSignificantHalf>(oaknut::CodeGenerator& code, EmitC
|
|||||||
|
|
||||||
template<>
|
template<>
|
||||||
void EmitIR<IR::Opcode::LeastSignificantByte>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
void EmitIR<IR::Opcode::LeastSignificantByte>(oaknut::CodeGenerator& code, EmitContext& ctx, IR::Inst* inst) {
|
||||||
(void)code;
|
auto args = ctx.reg_alloc.GetArgumentInfo(inst);
|
||||||
(void)ctx;
|
|
||||||
(void)inst;
|
auto Wresult = ctx.reg_alloc.WriteW(inst);
|
||||||
ASSERT_FALSE("Unimplemented");
|
auto Woperand = ctx.reg_alloc.ReadW(args[0]);
|
||||||
|
RegAlloc::Realize(Wresult, Woperand);
|
||||||
|
|
||||||
|
code.UXTB(Wresult, Woperand); // TODO: Zext elimination
|
||||||
}
|
}
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user