From b0f75ce6a6bcf9161c616e229c2f855d2d6d6b98 Mon Sep 17 00:00:00 2001 From: pcpa Date: 2023年1月20日 16:29:15 -0300 Subject: mips: Correct regression with code to fill delay slot Apparently, previously the regression was not noticed due to value in the register that shows the regression. Now the check has been extended to detect the regression condition, and functionality of code to use delay slot reenabled. --- lib/jit_mips-cpu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/jit_mips-cpu.c') diff --git a/lib/jit_mips-cpu.c b/lib/jit_mips-cpu.c index f4472c7..f40b7e0 100644 --- a/lib/jit_mips-cpu.c +++ b/lib/jit_mips-cpu.c @@ -2230,11 +2230,13 @@ static jit_bool_t _can_swap_ds(jit_state_t *_jit, jit_node_t *prev, { jit_int32_t offset; - /* FIXME this fixes tramp.tst and ctramp.c tests */ - if (1||!prev) + if (!prev) return 0; switch (prev->code) { + case jit_code_prolog: + if (!_jitc->function->assume_frame) + break; case jit_code_ltr_f: case jit_code_ler_f: case jit_code_eqr_f: -- cgit v1.2.3

AltStyle によって変換されたページ (->オリジナル) /