]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: disassembler macro for condition code
authorJan Beulich <jbeulich@suse.com>
Mon, 10 Jun 2024 08:45:56 +0000 (10:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 10 Jun 2024 08:45:56 +0000 (10:45 +0200)
commitcf037c0de24990ed2a0d9fabe8994dbd3c0e303e
treec7c33213c5e1dd80f551dd895bc641ef57c148fe
parentf3f71a5ca0b65c0aaf079e2b23ddfacb6fdc7d92
x86: disassembler macro for condition code

Both CMPccXADD and APX'es {,CF}CMOVcc have almost identical entries
replicated 16 times each. Fold those to just one each by introducing a
%CC macro. (Note that the recording of ->condition_code in print_insn()
is merely for completeness for now; it's not used as long as only
VEX/EVEX encodings would consume it.)

This then also renders condition codes printed consistent across all
respective insns; CMPxxXADD had a number of outliers so far.
gas/testsuite/gas/i386/x86-64-apx-evex-promoted-intel.d
gas/testsuite/gas/i386/x86-64-apx-evex-promoted-wig.d
gas/testsuite/gas/i386/x86-64-apx-evex-promoted.d
gas/testsuite/gas/i386/x86-64-apx_f-evex.d
gas/testsuite/gas/i386/x86-64-cmpccxadd-intel.d
gas/testsuite/gas/i386/x86-64-cmpccxadd.d
opcodes/i386-dis-evex-prefix.h
opcodes/i386-dis-evex.h
opcodes/i386-dis.c