diff options
| author | Andrew Chambers <[email protected]> | 2021-10-13 22:46:17 +1300 |
|---|---|---|
| committer | Andrew Chambers <[email protected]> | 2021-10-13 22:46:17 +1300 |
| commit | dfe49d06a417f4cb6a9ee0c67f7c1234c2315a7a (patch) | |
| tree | 3efcf1ffc9df78f76026f6304e7d7ba1ea4410de /minias.h | |
| parent | 174fc3291257e96a81a8757ae22dd0e14d3b259f (diff) | |
Fix broken test.
Diffstat (limited to 'minias.h')
| -rw-r--r-- | minias.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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; |
