diff options
Diffstat (limited to 'gas/config/tc-i386.c')
-rw-r--r-- | gas/config/tc-i386.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 8937ddf..235bac0 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -3009,7 +3009,7 @@ i386_arch (void) unsigned long i386_mach (void) { - if (!strncmp (default_arch, "x86_64", 6)) + if (startswith (default_arch, "x86_64")) { if (cpu_arch_isa == PROCESSOR_L1OM) { @@ -4730,10 +4730,10 @@ md_assemble (char *line) && i.operands > 1 && (strcmp (mnemonic, "bound") != 0) && (strncmp (mnemonic, "invlpg", 6) != 0) - && (strncmp (mnemonic, "monitor", 7) != 0) - && (strncmp (mnemonic, "mwait", 5) != 0) + && !startswith (mnemonic, "monitor") + && !startswith (mnemonic, "mwait") && (strcmp (mnemonic, "pvalidate") != 0) - && (strncmp (mnemonic, "rmp", 3) != 0) + && !startswith (mnemonic, "rmp") && (strcmp (mnemonic, "tpause") != 0) && (strcmp (mnemonic, "umwait") != 0) && !(operand_type_check (i.types[0], imm) @@ -10416,7 +10416,7 @@ check_VecOperations (char *op_string, char *op_end) op_string++; /* Check broadcasts. */ - if (strncmp (op_string, "1to", 3) == 0) + if (startswith (op_string, "1to")) { unsigned int bcst_type; @@ -13754,7 +13754,7 @@ md_show_usage (FILE *stream) const char * i386_target_format (void) { - if (!strncmp (default_arch, "x86_64", 6)) + if (startswith (default_arch, "x86_64")) { update_code_flag (CODE_64BIT, 1); if (default_arch[6] == '\0') @@ -14322,7 +14322,7 @@ i386_elf_section_type (const char *str, size_t len) { if (flag_code == CODE_64BIT && len == sizeof ("unwind") - 1 - && strncmp (str, "unwind", 6) == 0) + && startswith (str, "unwind")) return SHT_X86_64_UNWIND; return -1; |