emit_x64: Use movzx(eax, ah) instead of emitting byte equivalent

Emission fixed in xbyak v6.61
This commit is contained in:
Merry 2022-07-31 17:52:35 +01:00
parent 8f890d327a
commit d7bd5bb7a7

View file

@ -156,9 +156,7 @@ void EmitX64::EmitGetNZFromOp(EmitContext& ctx, IR::Inst* inst) {
const Xbyak::Reg value = ctx.reg_alloc.UseGpr(args[0]).changeBit(bitsize); const Xbyak::Reg value = ctx.reg_alloc.UseGpr(args[0]).changeBit(bitsize);
code.cmp(value, 0); code.cmp(value, 0);
code.lahf(); code.lahf();
code.db(0x0f); code.movzx(eax, ah);
code.db(0xb6);
code.db(0xc4);
ctx.reg_alloc.DefineValue(inst, nz); ctx.reg_alloc.DefineValue(inst, nz);
} }