mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-07 15:08:22 +01:00
A64: Implement MOVN, MOVZ, MOVK
This commit is contained in:
parent
cc6071d667
commit
cdbc8d07a5
4 changed files with 63 additions and 5 deletions
|
|
@ -166,8 +166,8 @@ void A64EmitX64::EmitA64SetW(A64EmitContext& ctx, IR::Inst* inst) {
|
|||
auto args = ctx.reg_alloc.GetArgumentInfo(inst);
|
||||
A64::Reg reg = inst->GetArg(0).GetA64RegRef();
|
||||
auto addr = qword[r15 + offsetof(A64JitState, reg) + sizeof(u64) * static_cast<size_t>(reg)];
|
||||
if (args[1].IsImmediate()) {
|
||||
code->mov(addr, args[1].GetImmediateU32());
|
||||
if (args[1].FitsInImmediateS32()) {
|
||||
code->mov(addr, args[1].GetImmediateS32());
|
||||
} else {
|
||||
// TODO: zext tracking, xmm variant
|
||||
Xbyak::Reg64 to_store = ctx.reg_alloc.UseScratchGpr(args[1]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue