diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-06-28 18:32:56 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-06-28 18:38:43 +0300 |
commit | 2fc4f728643f78577c26e548619bc7db90a7c6ae (patch) | |
tree | 760d2ae310737b0ff39e37aa896d182f7df58c51 /include | |
parent | d65c2461d26bf485b88276984bbc33054d5bce20 (diff) | |
download | ejit-2fc4f728643f78577c26e548619bc7db90a7c6ae.tar.gz ejit-2fc4f728643f78577c26e548619bc7db90a7c6ae.zip |
implement enough for fibonacci
Diffstat (limited to 'include')
-rw-r--r-- | include/ejit/ejit.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |