aboutsummaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-07-14 14:46:40 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-07-14 14:46:40 +0300
commitdcca95ebeef7ad047b437c7e65bcd2d33784cae4 (patch)
tree39a3f9834df0dc7c27d080efef15c22889730dc5 /src/common.h
parent215ac4569f897b10215248c4caa3191919a555df (diff)
downloadejit-dcca95ebeef7ad047b437c7e65bcd2d33784cae4.tar.gz
ejit-dcca95ebeef7ad047b437c7e65bcd2d33784cae4.zip
add float + double instead of just double
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h
index 1e08961..c646288 100644
--- a/src/common.h
+++ b/src/common.h
@@ -7,8 +7,10 @@
enum ejit_opcode {
MOVI,
MOVI_F,
+ MOVI_D,
MOVR,
MOVR_F,
+ MOVR_D,
LDI8,
LDI16,
@@ -73,20 +75,25 @@ enum ejit_opcode {
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,
@@ -94,6 +101,7 @@ enum ejit_opcode {
COMR,
NEGR,
NEGR_F,
+ NEGR_D,
LSHI,
LSHR,
@@ -113,6 +121,8 @@ enum ejit_opcode {
TRUNCR_D_32,
TRUNCR_D_64,
+ TRUNCR_F_32,
+ TRUNCR_F_64,
EQR,
NER,
@@ -125,20 +135,27 @@ enum ejit_opcode {
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,
@@ -148,12 +165,11 @@ enum ejit_opcode {
BGTI,
BGTI_U,
BGTR_F,
+ BGTR_D,
BLTI,
BLTI_U,
- BLTGTR_F,
-
JMP,
JMPR,
@@ -179,10 +195,13 @@ enum ejit_opcode {
RETR,
RETI,
RETR_F,
+ RETR_D,
RETI_F,
+ RETI_D,
RETVAL,
RETVAL_F,
+ RETVAL_D,
START,
END,
@@ -203,6 +222,7 @@ struct ejit_insn {
void *p;
int64_t o;
double d;
+ float f;
};
};