emit_x86: Fix nzcv for EmitSub

This commit is contained in:
MerryMage 2018-01-08 22:03:20 +00:00
parent 68391b0a05
commit f0276dd53b

View file

@ -910,6 +910,7 @@ static void EmitSub(BlockOfCode* code, EmitContext& ctx, IR::Inst* inst, size_t
if (nzcv_inst) {
ctx.EraseInstruction(nzcv_inst);
code->cmc();
code->lahf();
code->seto(code->al);
ctx.reg_alloc.DefineValue(nzcv_inst, nzcv);