summaryrefslogtreecommitdiff
path: root/nasm.c
diff options
context:
space:
mode:
authorJin Kyu Song <jin.kyu.song@intel.com>2013-08-26 20:28:42 -0700
committerCyrill Gorcunov <gorcunov@gmail.com>2013-08-28 09:37:21 +0400
commit9bb987d8e0330429afba42015b1fc7c7ca0d1b16 (patch)
tree99bbfef132c7f80d33b22cb3c0e6f9c083366200 /nasm.c
parentd2d9c3ee3807791cb0240ea8b141643bc6d9b9a7 (diff)
downloadnasm-9bb987d8e0330429afba42015b1fc7c7ca0d1b16.tar.gz
nasm-9bb987d8e0330429afba42015b1fc7c7ca0d1b16.tar.bz2
nasm-9bb987d8e0330429afba42015b1fc7c7ca0d1b16.zip
AVX-512: Change the data type for instruction flags
Increased the size of data type for instruction flags from 32bits to 64bits. And a new type (iflags_t) is defined for better maintainability. Bigger data type is needed because more instruction set types are coming but there were not enough space for them. Since they are not bit masks, only one instruction set is allowed for each instruction. Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'nasm.c')
-rw-r--r--nasm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nasm.c b/nasm.c
index 126f271..3a0c050 100644
--- a/nasm.c
+++ b/nasm.c
@@ -74,7 +74,7 @@ struct forwrefinfo { /* info held on forward refs. */
};
static int get_bits(char *value);
-static uint32_t get_cpu(char *cpu_str);
+static iflags_t get_cpu(char *cpu_str);
static void parse_cmdline(int, char **);
static void assemble_file(char *, StrList **);
static void nasm_verror_gnu(int severity, const char *fmt, va_list args);
@@ -106,8 +106,8 @@ static FILE *error_file; /* Where to write error messages */
FILE *ofile = NULL;
int optimizing = MAX_OPTIMIZE; /* number of optimization passes to take */
static int sb, cmd_sb = 16; /* by default */
-static uint32_t cmd_cpu = IF_PLEVEL; /* highest level by default */
-static uint32_t cpu = IF_PLEVEL; /* passed to insn_size & assemble.c */
+static iflags_t cmd_cpu = IF_PLEVEL; /* highest level by default */
+static iflags_t cpu = IF_PLEVEL; /* passed to insn_size & assemble.c */
int64_t global_offset_changed; /* referenced in labels.c */
int64_t prev_offset_changed;
int32_t stall_count;
@@ -2006,7 +2006,7 @@ static void usage(void)
fputs("type `nasm -h' for help\n", error_file);
}
-static uint32_t get_cpu(char *value)
+static iflags_t get_cpu(char *value)
{
if (!strcmp(value, "8086"))
return IF_8086;