From a2f8452b3d35a756cba38924f5c51a48a7207494 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 18 Sep 2023 13:10:19 +0300 Subject: [PATCH] Fixed code generation for MOD --- ir_x86.dasc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir_x86.dasc b/ir_x86.dasc index d248464..d171847 100644 --- a/ir_x86.dasc +++ b/ir_x86.dasc @@ -3328,7 +3328,7 @@ static void ir_emit_mul_div_mod(ir_ctx *ctx, ir_ref def, ir_insn *insn) | mov byte [Ra(fp)+offset], ah } - } else if (def_reg != IR_REG_RDX) { + } else { if (def_reg != IR_REG_NONE) { if (def_reg != IR_REG_RDX) { ir_emit_mov(ctx, type, def_reg, IR_REG_RDX);