From 9fe8ccf4ae09018fdde01a9d83f9db10ad354221 Mon Sep 17 00:00:00 2001
From: Kimplul <kimi.h.kuparinen@gmail.com>
Date: Sat, 29 Jun 2024 20:11:34 +0300
Subject: work through branching instructions

---
 src/compile/compile.c | 17 -----------------
 1 file changed, 17 deletions(-)

(limited to 'src/compile')

diff --git a/src/compile/compile.c b/src/compile/compile.c
index 4ac68d3..014b7d3 100644
--- a/src/compile/compile.c
+++ b/src/compile/compile.c
@@ -190,21 +190,6 @@ static void compile_eqr(struct ejit_func *f, jit_state_t *j, struct ejit_insn i)
 	compile_reg_cmp(f, j, i, jit_beqr, 1);
 }
 
-static void compile_ltr(struct ejit_func *f, jit_state_t *j, struct ejit_insn i)
-{
-	compile_reg_cmp(f, j, i, jit_bltr, 0);
-}
-
-static void compile_bltr(struct ejit_func *f, jit_state_t *j,
-                         struct ejit_insn i, struct vec *relocs)
-{
-	jit_gpr_t c0 = getloc(f, j, i.r1, 0);
-	jit_gpr_t c1 = getloc(f, j, i.r2, 1);
-	jit_reloc_t r = jit_bltr(j, c0, c1);
-	struct reloc_helper h = {.r = r, .to = i.r0};
-	vect_append(struct reloc_helper, *relocs, &h);
-}
-
 static void compile_beqi(struct ejit_func *f, jit_state_t *j,
                          struct ejit_insn i, struct vec *relocs)
 {
@@ -377,9 +362,7 @@ static size_t compile_fn_body(struct ejit_func *f, jit_state_t *j, void *arena,
 		case LDXIU64: compile_ldxiu64(f, j, i); break;
 
 		case EQR: compile_eqr(f, j, i); break;
-		case LTR: compile_ltr(f, j, i); break;
 
-		case BLTR: compile_bltr(f, j, i, &relocs); break;
 		case BEQI: compile_beqi(f, j, i, &relocs); break;
 		case BNEI: compile_bnei(f, j, i, &relocs); break;
 		case BGTI: compile_bgti(f, j, i, &relocs); break;
-- 
cgit v1.2.3