mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-13 00:38:55 +02:00
fix xs stuffs
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
ed4b417e61
commit
4d3b6030db
5 changed files with 52 additions and 11 deletions
|
|
@ -562,7 +562,9 @@ void EmitIR<IR::Opcode::And32>(powah::Context& code, EmitContext& ctx, IR::Inst*
|
|||
auto const src_a = ctx.reg_alloc.UseGpr(inst->GetArg(0));
|
||||
auto const src_b = ctx.reg_alloc.UseGpr(inst->GetArg(1));
|
||||
code.RLDICL(result, src_a, 0, 32); // Truncate
|
||||
code.AND_(result, result, src_b);
|
||||
code.AND(result, result, src_b);
|
||||
auto const tmp = ctx.reg_alloc.ScratchGpr();
|
||||
code.ANDI_(tmp, result, 0);
|
||||
ctx.reg_alloc.DefineValue(inst, result);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue