diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-03-11 16:21:19 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2021-03-11 16:21:19 +0100 |
commit | ac7a231133b5a1eeba16fe93396af86b7c5d7c7a (patch) | |
tree | 0dfe403b15fe6a987e2574ed520c99ecd24b3c24 /opcodes/i386-dis.c | |
parent | da944c8a70d8c26a56f9fe58e9d21dfa99cb9b02 (diff) | |
download | gdb-ac7a231133b5a1eeba16fe93396af86b7c5d7c7a.zip gdb-ac7a231133b5a1eeba16fe93396af86b7c5d7c7a.tar.gz gdb-ac7a231133b5a1eeba16fe93396af86b7c5d7c7a.tar.bz2 |
x86: drop a few redundant EVEX-related checks
vex.b can only be set when vex.evex is also set. Similarly vex.evex can
only be set when need_vex is also set.
Diffstat (limited to 'opcodes/i386-dis.c')
-rw-r--r-- | opcodes/i386-dis.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index eb91c5d..10dbe7f 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -10749,7 +10749,7 @@ putop (const char *in_template, int sizeflag) } else if (l == 1 && last[0] == 'X') { - if (!need_vex || !vex.evex) + if (!vex.evex) abort (); if (intel_syntax || ((modrm.mod == 3 || vex.b) && !(sizeflag & SUFFIX_ALWAYS))) @@ -10951,8 +10951,7 @@ print_displacement (char *buf, bfd_vma disp) static void intel_operand_size (int bytemode, int sizeflag) { - if (vex.evex - && vex.b + if (vex.b && (bytemode == x_mode || bytemode == evex_half_bcst_xmmq_mode)) { @@ -11845,7 +11844,7 @@ OP_E_memory (int bytemode, int sizeflag) oappend (scratchbuf); } } - if (vex.evex && vex.b + if (vex.b && (bytemode == x_mode || bytemode == evex_half_bcst_xmmq_mode)) { |