From 2fc4f728643f78577c26e548619bc7db90a7c6ae Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 28 Jun 2024 18:32:56 +0300 Subject: implement enough for fibonacci --- include/ejit/ejit.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/ejit/ejit.h b/include/ejit/ejit.h index c816a29..17a6034 100644 --- a/include/ejit/ejit.h +++ b/include/ejit/ejit.h @@ -245,9 +245,11 @@ void ejit_stxi_d(struct ejit_func *s, struct ejit_fpr r0, struct ejit_gpr r1, lo void ejit_addr(struct ejit_func *s, struct ejit_gpr r0, struct ejit_gpr r1, struct ejit_gpr r2); void ejit_addr_f(struct ejit_func *s, struct ejit_fpr r0, struct ejit_fpr r1, struct ejit_fpr r2); +void ejit_addi(struct ejit_func *s, struct ejit_gpr r0, struct ejit_gpr r1, long o); void ejit_subr(struct ejit_func *s, struct ejit_gpr r0, struct ejit_gpr r1, struct ejit_gpr r2); void ejit_subr_f(struct ejit_func *s, struct ejit_fpr r0, struct ejit_fpr r1, struct ejit_fpr r2); +void ejit_subi(struct ejit_func *s, struct ejit_gpr r0, struct ejit_gpr r1, long o); void ejit_mulr(struct ejit_func *s, struct ejit_gpr r0, struct ejit_gpr r1, struct ejit_gpr r2); void ejit_mulr_f(struct ejit_func *s, struct ejit_fpr r0, struct ejit_fpr r1, struct ejit_fpr r2); @@ -263,6 +265,7 @@ void ejit_ltr(struct ejit_func *s, struct ejit_gpr r0, struct ejit_gpr r1, struc struct ejit_reloc ejit_bltr(struct ejit_func *s, struct ejit_gpr r0, struct ejit_gpr r1); struct ejit_reloc ejit_bnei(struct ejit_func *s, struct ejit_gpr r0, long o); struct ejit_reloc ejit_beqi(struct ejit_func *s, struct ejit_gpr r0, long o); +struct ejit_reloc ejit_bgti(struct ejit_func *s, struct ejit_gpr r0, long o); struct ejit_reloc ejit_jmp(struct ejit_func *s); void ejit_patch(struct ejit_func *s, struct ejit_reloc r, struct ejit_label l); -- cgit v1.2.3