diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-17 17:25:27 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-17 17:25:27 -0700 |
commit | cf5180a9553e43bbaa46fd1a77c75dc8b7f6da42 (patch) | |
tree | e49a78cca72852670b210bce53f4c5698fc4c7bf /insns.h | |
parent | 401c07e20d14130a2d147468a408fce9edd1faff (diff) | |
download | nasm-cf5180a9553e43bbaa46fd1a77c75dc8b7f6da42.tar.gz |
Actually generate SSE5 instructions
This checkin completes what is required to actually generate SSE5
instructions. No support in the disassembler yet.
This checkin covers:
- Support for actually generating DREX prefixes.
- Support for matching operand "operand X must match Y"
Diffstat (limited to 'insns.h')
-rw-r--r-- | insns.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -21,7 +21,7 @@ struct itemplate { enum opcode opcode; /* the token, passed from "parser.c" */ int operands; /* number of operands */ - int32_t opd[MAX_OPERANDS]; /* bit flags for operand types */ + opflags_t opd[MAX_OPERANDS]; /* bit flags for operand types */ const char *code; /* the code it assembles to */ uint32_t flags; /* some flags */ }; @@ -90,6 +90,7 @@ extern const struct itemplate * const * const itable[]; #define IF_SSSE3 0x00200000UL /* it's an SSSE3 instruction */ #define IF_SSE41 0x00400000UL /* it's an SSE4.1 instruction */ #define IF_SSE42 0x00800000UL /* it's an SSE4.2 instruction */ +#define IF_SSE5 0x00800000UL /* HACK NEED TO REORGANIZE THESE BITS */ #define IF_PMASK 0xFF000000UL /* the mask for processor types */ #define IF_PLEVEL 0x0F000000UL /* the mask for processor instr. level */ /* also the highest possible processor */ |