summaryrefslogtreecommitdiff
path: root/insns.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-17 17:25:27 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-17 17:25:27 -0700
commitcf5180a9553e43bbaa46fd1a77c75dc8b7f6da42 (patch)
treee49a78cca72852670b210bce53f4c5698fc4c7bf /insns.h
parent401c07e20d14130a2d147468a408fce9edd1faff (diff)
downloadnasm-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/insns.h b/insns.h
index 21dfd93b..c7fa75a0 100644
--- a/insns.h
+++ b/insns.h
@@ -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 */