From 2888ab4a61f423190b8e126eb8213d16d7fe3042 Mon Sep 17 00:00:00 2001 From: Mikulas Patocka Date: Mon, 18 Nov 2024 19:08:34 +0100 Subject: [PATCH] codegen: fix weird logic in gen_frame_load_op --- cg-frame.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cg-frame.inc b/cg-frame.inc index 9009536..293c19f 100644 --- a/cg-frame.inc +++ b/cg-frame.inc @@ -345,7 +345,7 @@ static bool attr_w gen_frame_load_op(struct codegen_context *ctx, unsigned size, { offset += (size_t)slot * slot_size; g(gen_address(ctx, R_FRAME, offset, IMM_PURPOSE_LDR_OFFSET, size)); - gen_insn(INSN_ALU + ARCH_PARTIAL_ALU(size), size, alu, (alu == ALU_MUL ? ALU_WRITES_FLAGS(alu, true, false, 0) : 1) | writes_flags); + gen_insn(INSN_ALU + ARCH_PARTIAL_ALU(size), size, alu, ALU_WRITES_FLAGS(alu, true, false, 0) | writes_flags); gen_one(reg); gen_one(reg); gen_address_offset(); -- 2.11.4.GIT