diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-04-01 20:39:42 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-04-01 21:18:12 +0300 |
commit | 449c23ebc32eb45f8a6360c472bfbf5db6cd132f (patch) | |
tree | 217c5fc426b32e42647a1af2f50768885802138d /src/common.h | |
parent | 704baab677029882a5924a59e3fb92f2295132a4 (diff) | |
download | ejit-449c23ebc32eb45f8a6360c472bfbf5db6cd132f.tar.gz ejit-449c23ebc32eb45f8a6360c472bfbf5db6cd132f.zip |
aarch64 linux seems to work
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 416 |
1 files changed, 208 insertions, 208 deletions
diff --git a/src/common.h b/src/common.h index 3e56a76..6a3c754 100644 --- a/src/common.h +++ b/src/common.h @@ -21,214 +21,214 @@ #include "vec.h" enum ejit_opcode { - MOVI, - MOVI_F, - MOVI_D, - MOVR, - MOVR_F, - MOVR_D, - - LDI8, - LDI16, - LDI32, - LDI64, - LDIU8, - LDIU16, - LDIU32, - LDIU64, - LDIF, - LDID, - - LDXI8, - LDXI16, - LDXI32, - LDXI64, - LDXIU8, - LDXIU16, - LDXIU32, - LDXIU64, - LDXIF, - LDXID, - - LDXR8, - LDXR16, - LDXR32, - LDXR64, - LDXRU8, - LDXRU16, - LDXRU32, - LDXRU64, - LDXRF, - LDXRD, - - STI8, - STI16, - STI32, - STI64, - STIF, - STID, - - STXI8, - STXI16, - STXI32, - STXI64, - STXIF, - STXID, - - STXR8, - STXR16, - STXR32, - STXR64, - STXRF, - STXRD, - - EXTR8, - EXTR16, - EXTR32, - EXTRU8, - EXTRU16, - EXTRU32, - EXTRF, - EXTRD, - - ADDR, - ADDR_F, - ADDR_D, - ADDI, - - ABSR_F, - ABSR_D, - - SUBR, - SUBR_F, - SUBR_D, - SUBI, - - MULR, - MULR_F, - MULR_D, - - DIVR, - DIVR_U, - DIVR_F, - DIVR_D, - - REMR, - REMR_U, - - COMR, - NEGR, - NEGR_F, - NEGR_D, - - LSHI, - LSHR, - RSHI, - RSHI_U, - RSHR, - RSHR_U, - - ANDR, - ANDI, - - ORR, - ORI, - - XORR, - XORI, - - TRUNCR_D_32, - TRUNCR_D_64, - TRUNCR_F_32, - TRUNCR_F_64, - - EQR, - NER, - GTR, - GTR_U, - GER, - GER_U, - - EQR_F, - NER_F, - GTR_F, - GER_F, - EQR_D, - NER_D, - GTR_D, - GER_D, - - BNER, - BNEI, - BNER_F, - BNER_D, - - BEQR, - BEQI, - BEQR_F, - BEQR_D, - - BGER, - BGER_U, - BGEI, - BGEI_U, - BGER_F, - BGER_D, - - BLEI, - BLEI_U, - - BGTR, - BGTR_U, - BGTI, - BGTI_U, - BGTR_F, - BGTR_D, - - BLTI, - BLTI_U, - - JMP, - JMPR, - - BMCI, - BMCR, - BMSI, - BMSR, - - PARAM, - PARAM_F, - - ARG, - ARG_I, - ARG_F, - ARG_FI, - - ESCAPEI_I, - ESCAPEI_L, - ESCAPEI_F, - ESCAPEI_D, - - CALLI_I, - CALLI_L, - CALLI_F, - CALLI_D, - - RETR, - RETI, - RETR_F, - RETR_D, - RETI_F, - RETI_D, - - RETVAL, - RETVAL_F, - RETVAL_D, - - START, - END, - - OPCODE_COUNT, + EJIT_OP_MOVI, + EJIT_OP_MOVI_F, + EJIT_OP_MOVI_D, + EJIT_OP_MOVR, + EJIT_OP_MOVR_F, + EJIT_OP_MOVR_D, + + EJIT_OP_LDI8, + EJIT_OP_LDI16, + EJIT_OP_LDI32, + EJIT_OP_LDI64, + EJIT_OP_LDIU8, + EJIT_OP_LDIU16, + EJIT_OP_LDIU32, + EJIT_OP_LDIU64, + EJIT_OP_LDIF, + EJIT_OP_LDID, + + EJIT_OP_LDXI8, + EJIT_OP_LDXI16, + EJIT_OP_LDXI32, + EJIT_OP_LDXI64, + EJIT_OP_LDXIU8, + EJIT_OP_LDXIU16, + EJIT_OP_LDXIU32, + EJIT_OP_LDXIU64, + EJIT_OP_LDXIF, + EJIT_OP_LDXID, + + EJIT_OP_LDXR8, + EJIT_OP_LDXR16, + EJIT_OP_LDXR32, + EJIT_OP_LDXR64, + EJIT_OP_LDXRU8, + EJIT_OP_LDXRU16, + EJIT_OP_LDXRU32, + EJIT_OP_LDXRU64, + EJIT_OP_LDXRF, + EJIT_OP_LDXRD, + + EJIT_OP_STI8, + EJIT_OP_STI16, + EJIT_OP_STI32, + EJIT_OP_STI64, + EJIT_OP_STIF, + EJIT_OP_STID, + + EJIT_OP_STXI8, + EJIT_OP_STXI16, + EJIT_OP_STXI32, + EJIT_OP_STXI64, + EJIT_OP_STXIF, + EJIT_OP_STXID, + + EJIT_OP_STXR8, + EJIT_OP_STXR16, + EJIT_OP_STXR32, + EJIT_OP_STXR64, + EJIT_OP_STXRF, + EJIT_OP_STXRD, + + EJIT_OP_EXTR8, + EJIT_OP_EXTR16, + EJIT_OP_EXTR32, + EJIT_OP_EXTRU8, + EJIT_OP_EXTRU16, + EJIT_OP_EXTRU32, + EJIT_OP_EXTRF, + EJIT_OP_EXTRD, + + EJIT_OP_ADDR, + EJIT_OP_ADDR_F, + EJIT_OP_ADDR_D, + EJIT_OP_ADDI, + + EJIT_OP_ABSR_F, + EJIT_OP_ABSR_D, + + EJIT_OP_SUBR, + EJIT_OP_SUBR_F, + EJIT_OP_SUBR_D, + EJIT_OP_SUBI, + + EJIT_OP_MULR, + EJIT_OP_MULR_F, + EJIT_OP_MULR_D, + + EJIT_OP_DIVR, + EJIT_OP_DIVR_U, + EJIT_OP_DIVR_F, + EJIT_OP_DIVR_D, + + EJIT_OP_REMR, + EJIT_OP_REMR_U, + + EJIT_OP_COMR, + EJIT_OP_NEGR, + EJIT_OP_NEGR_F, + EJIT_OP_NEGR_D, + + EJIT_OP_LSHI, + EJIT_OP_LSHR, + EJIT_OP_RSHI, + EJIT_OP_RSHI_U, + EJIT_OP_RSHR, + EJIT_OP_RSHR_U, + + EJIT_OP_ANDR, + EJIT_OP_ANDI, + + EJIT_OP_ORR, + EJIT_OP_ORI, + + EJIT_OP_XORR, + EJIT_OP_XORI, + + EJIT_OP_TRUNCR_D_32, + EJIT_OP_TRUNCR_D_64, + EJIT_OP_TRUNCR_F_32, + EJIT_OP_TRUNCR_F_64, + + EJIT_OP_EQR, + EJIT_OP_NER, + EJIT_OP_GTR, + EJIT_OP_GTR_U, + EJIT_OP_GER, + EJIT_OP_GER_U, + + EJIT_OP_EQR_F, + EJIT_OP_NER_F, + EJIT_OP_GTR_F, + EJIT_OP_GER_F, + EJIT_OP_EQR_D, + EJIT_OP_NER_D, + EJIT_OP_GTR_D, + EJIT_OP_GER_D, + + EJIT_OP_BNER, + EJIT_OP_BNEI, + EJIT_OP_BNER_F, + EJIT_OP_BNER_D, + + EJIT_OP_BEQR, + EJIT_OP_BEQI, + EJIT_OP_BEQR_F, + EJIT_OP_BEQR_D, + + EJIT_OP_BGER, + EJIT_OP_BGER_U, + EJIT_OP_BGEI, + EJIT_OP_BGEI_U, + EJIT_OP_BGER_F, + EJIT_OP_BGER_D, + + EJIT_OP_BLEI, + EJIT_OP_BLEI_U, + + EJIT_OP_BGTR, + EJIT_OP_BGTR_U, + EJIT_OP_BGTI, + EJIT_OP_BGTI_U, + EJIT_OP_BGTR_F, + EJIT_OP_BGTR_D, + + EJIT_OP_BLTI, + EJIT_OP_BLTI_U, + + EJIT_OP_JMP, + EJIT_OP_JMPR, + + EJIT_OP_BMCI, + EJIT_OP_BMCR, + EJIT_OP_BMSI, + EJIT_OP_BMSR, + + EJIT_OP_PARAM, + EJIT_OP_PARAM_F, + + EJIT_OP_ARG, + EJIT_OP_ARG_I, + EJIT_OP_ARG_F, + EJIT_OP_ARG_FI, + + EJIT_OP_ESCAPEI_I, + EJIT_OP_ESCAPEI_L, + EJIT_OP_ESCAPEI_F, + EJIT_OP_ESCAPEI_D, + + EJIT_OP_CALLI_I, + EJIT_OP_CALLI_L, + EJIT_OP_CALLI_F, + EJIT_OP_CALLI_D, + + EJIT_OP_RETR, + EJIT_OP_RETI, + EJIT_OP_RETR_F, + EJIT_OP_RETR_D, + EJIT_OP_RETI_F, + EJIT_OP_RETI_D, + + EJIT_OP_RETVAL, + EJIT_OP_RETVAL_F, + EJIT_OP_RETVAL_D, + + EJIT_OP_START, + EJIT_OP_END, + + EJIT_OPCODE_COUNT, }; struct ejit_insn { |