aboutsummaryrefslogtreecommitdiff
path: root/minias.h
diff options
context:
space:
mode:
Diffstat (limited to 'minias.h')
-rw-r--r--minias.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/minias.h b/minias.h
index 5c9452c..d46a8b5 100644
--- a/minias.h
+++ b/minias.h
@@ -1,11 +1,11 @@
#include <assert.h>
+#include <ctype.h>
#include <elf.h>
#include <errno.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
-#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -76,6 +76,8 @@ typedef enum {
ASM_CVTSD2SS,
ASM_CVTSI2SD,
ASM_CVTSI2SS,
+ ASM_CVTSD2SI,
+ ASM_CVTSS2SI,
ASM_DIV,
ASM_IDIV,
ASM_LEA,
@@ -107,7 +109,7 @@ typedef enum {
ASM_XORPS,
// Registers, order matters.
ASM_REG_BEGIN,
-
+
ASM_AL,
ASM_CL,
ASM_DL,
@@ -192,7 +194,7 @@ typedef enum {
ASM_XMM13,
ASM_XMM14,
ASM_XMM15,
-
+
/* RIP is in a special class of its own. */
ASM_RIP,
ASM_NO_REG,
@@ -200,7 +202,6 @@ typedef enum {
ASM_REG_END,
} AsmKind;
-
typedef union Parsev Parsev;
typedef struct Label {
@@ -284,7 +285,7 @@ typedef struct Call {
uint32_t indirect;
union {
const Parsev *indirect;
- Value direct;
+ Value direct;
} target;
} Call;