emit_x86: Fix nzcv for EmitSub
This commit is contained in:
parent
68391b0a05
commit
f0276dd53b
1 changed files with 1 additions and 0 deletions
|
@ -910,6 +910,7 @@ static void EmitSub(BlockOfCode* code, EmitContext& ctx, IR::Inst* inst, size_t
|
||||||
|
|
||||||
if (nzcv_inst) {
|
if (nzcv_inst) {
|
||||||
ctx.EraseInstruction(nzcv_inst);
|
ctx.EraseInstruction(nzcv_inst);
|
||||||
|
code->cmc();
|
||||||
code->lahf();
|
code->lahf();
|
||||||
code->seto(code->al);
|
code->seto(code->al);
|
||||||
ctx.reg_alloc.DefineValue(nzcv_inst, nzcv);
|
ctx.reg_alloc.DefineValue(nzcv_inst, nzcv);
|
||||||
|
|
Loading…
Reference in a new issue