binutils-gdb/opcodes
Andrew Burgess 36d94bd42b libopcodes/ppc: add support for disassembler styling
This commit adds disassembler styling to the libopcodes ppc
disassembler.  This conversion was pretty straight forward, I just
converted the fprintf_func calls to fprintf_styled_func calls and
added an appropriate style.

For testing the new styling I just assembled then disassembled the
source files in gas/testsuite/gas/ppc and manually checked that the
styling looked reasonable.

I think the only slightly weird case was how things like '4*cr1+eq'
are styled.  As best I can tell, this construct, used for example in
this instruction:

  crand   4*cr1+lt,4*cr1+gt,4*cr1+eq

is used to access a field of a control register.  I initially tried
styling this whole construct as a register[1], but during review it
was suggested that instead different parts of the text should have
different styles.  In this commit I propose styling '4*cr1+lt' like
this:

  4    - immediate,
  *    - text,
  cr1  - register
  +    - text
  lt   - sub-mnemonic

If the user does not request styled output from objdump, then there
should be no change in the disassembler output after this commit.

[1] https://sourceware.org/pipermail/binutils/2022-July/121771.html
2022-07-25 14:13:34 +01:00
..
po Update version to 2.39.50 and regenerate files 2022-07-08 11:19:44 +01:00
.gitignore
aarch64-asm-2.c
aarch64-asm.c
aarch64-asm.h
aarch64-dis-2.c
aarch64-dis.c opcodes/aarch64: split off creation of comment text in disassembler 2022-06-29 12:03:22 +01:00
aarch64-dis.h
aarch64-gen.c
aarch64-opc-2.c
aarch64-opc.c opcodes/aarch64: split off creation of comment text in disassembler 2022-06-29 12:03:22 +01:00
aarch64-opc.h
aarch64-tbl.h
aclocal.m4 Regenerate with automake-1.15.1 2022-07-09 20:10:47 +09:30
alpha-dis.c
alpha-opc.c
arc-dis.c Re: opcodes/arc: Implement style support in the disassembler 2022-07-20 12:47:38 +09:30
arc-dis.h
arc-ext-tbl.h
arc-ext.c
arc-ext.h
arc-fxi.h
arc-nps400-tbl.h
arc-opc.c
arc-regs.h
arc-tbl.h
arm-dis.c
avr-dis.c opcodes/avr: Implement style support in the disassembler 2022-07-04 11:25:42 +01:00
bfin-dis.c
bpf-asm.c
bpf-desc.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
bpf-desc.h
bpf-dis.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
bpf-ibld.c
bpf-opc.c
bpf-opc.h
cgen-asm.c
cgen-asm.in
cgen-bitset.c
cgen-dis.c cgen: increase buffer for hash_insn_list 2022-05-12 11:49:45 +09:30
cgen-dis.in
cgen-ibld.in
cgen-opc.c
cgen.sh
ChangeLog Add ChangeLog entry from previous commit 2022-07-21 14:56:18 -05:00
ChangeLog-0001
ChangeLog-0203
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018
ChangeLog-2019
ChangeLog-2020
ChangeLog-9297
ChangeLog-9899
config.in
configure Regenerate with automake-1.15.1 2022-07-09 20:10:47 +09:30
configure.ac drop XC16x bits 2022-06-27 11:11:46 +02:00
configure.com
cr16-dis.c opcodes: remove use of PTR 2022-05-10 11:21:37 +09:30
cr16-opc.c
cris-desc.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
cris-desc.h
cris-dis.c
cris-opc.c
cris-opc.h
crx-dis.c opcodes: remove use of PTR 2022-05-10 11:21:37 +09:30
crx-opc.c
csky-dis.c Remove use of bfd_uint64_t and similar 2022-05-27 22:08:59 +09:30
csky-opc.h Remove use of bfd_uint64_t and similar 2022-05-27 22:08:59 +09:30
d10v-dis.c
d10v-opc.c
d30v-dis.c
d30v-opc.c
dep-in.sed
dis-buf.c
dis-init.c objdump/opcodes: add syntax highlighting to disassembler output 2022-04-04 13:10:52 +01:00
disassemble.c libopcodes/ppc: add support for disassembler styling 2022-07-25 14:13:34 +01:00
disassemble.h drop XC16x bits 2022-06-27 11:11:46 +02:00
dlx-dis.c
epiphany-asm.c
epiphany-desc.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
epiphany-desc.h
epiphany-dis.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
epiphany-ibld.c
epiphany-opc.c
epiphany-opc.h
fr30-asm.c
fr30-desc.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
fr30-desc.h
fr30-dis.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
fr30-ibld.c
fr30-opc.c
fr30-opc.h
frv-asm.c
frv-desc.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
frv-desc.h
frv-dis.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
frv-ibld.c
frv-opc.c
frv-opc.h
ft32-dis.c
ft32-opc.c
h8300-dis.c
hppa-dis.c
i386-dis-evex-len.h
i386-dis-evex-mod.h
i386-dis-evex-prefix.h
i386-dis-evex-reg.h
i386-dis-evex-w.h
i386-dis-evex.h
i386-dis.c x86: drop print_operand_value()'s "hex" parameter 2022-06-15 10:02:29 +02:00
i386-gen.c x86: re-order insn template fields 2022-07-18 11:19:58 +02:00
i386-init.h x86: fold Disp32S and Disp32 2022-07-04 08:32:50 +02:00
i386-opc.c
i386-opc.h x86: re-order insn template fields 2022-07-18 11:19:58 +02:00
i386-opc.tbl x86: replace wrong attributes on VCVTDQ2PH{X,Y} 2022-07-21 12:32:25 +02:00
i386-reg.tbl
i386-tbl.h x86: replace wrong attributes on VCVTDQ2PH{X,Y} 2022-07-21 12:32:25 +02:00
ia64-asmtab.c
ia64-asmtab.h
ia64-dis.c Remove use of bfd_uint64_t and similar 2022-05-27 22:08:59 +09:30
ia64-gen.c
ia64-ic.tbl
ia64-opc-a.c
ia64-opc-b.c
ia64-opc-d.c
ia64-opc-f.c
ia64-opc-i.c
ia64-opc-m.c
ia64-opc-x.c
ia64-opc.c
ia64-opc.h
ia64-raw.tbl
ia64-war.tbl
ia64-waw.tbl
ip2k-asm.c
ip2k-desc.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
ip2k-desc.h
ip2k-dis.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
ip2k-ibld.c
ip2k-opc.c
ip2k-opc.h
iq2000-asm.c
iq2000-desc.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
iq2000-desc.h
iq2000-dis.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
iq2000-ibld.c
iq2000-opc.c
iq2000-opc.h
lm32-asm.c
lm32-desc.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
lm32-desc.h
lm32-dis.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
lm32-ibld.c
lm32-opc.c
lm32-opc.h
lm32-opinst.c
loongarch-coder.c
loongarch-dis.c
loongarch-opc.c LoongArch:opcodes: Add new reloc types. 2022-07-25 09:59:08 +08:00
m32c-asm.c
m32c-desc.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
m32c-desc.h
m32c-dis.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
m32c-ibld.c
m32c-opc.c
m32c-opc.h
m32r-asm.c
m32r-desc.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
m32r-desc.h
m32r-dis.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
m32r-ibld.c
m32r-opc.c
m32r-opc.h
m32r-opinst.c
m68hc11-dis.c
m68hc11-opc.c
m68k-dis.c
m68k-opc.c
m10200-dis.c
m10200-opc.c
m10300-dis.c
m10300-opc.c
MAINTAINERS
Makefile.am drop XC16x bits 2022-06-27 11:11:46 +02:00
Makefile.in Regenerate with automake-1.15.1 2022-07-09 20:10:47 +09:30
makefile.vms
mcore-dis.c
mcore-opc.h
mep-asm.c
mep-desc.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
mep-desc.h
mep-dis.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
mep-ibld.c
mep-opc.c
mep-opc.h
metag-dis.c
microblaze-dis.c
microblaze-dis.h
microblaze-opc.h
microblaze-opcm.h
micromips-opc.c
mips16-opc.c
mips-dis.c
mips-formats.h
mips-opc.c
mmix-dis.c
mmix-opc.c
moxie-dis.c
moxie-opc.c
msp430-decode.c
msp430-decode.opc
msp430-dis.c
mt-asm.c
mt-desc.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
mt-desc.h
mt-dis.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
mt-ibld.c
mt-opc.c
mt-opc.h
nds32-asm.c
nds32-asm.h
nds32-dis.c
nds32-opc.h
nfp-dis.c
nios2-dis.c
nios2-opc.c
ns32k-dis.c
opc2c.c
opintl.h
or1k-asm.c
or1k-desc.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
or1k-desc.h
or1k-dis.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
or1k-ibld.c
or1k-opc.c
or1k-opc.h
or1k-opinst.c
pdp11-dis.c
pdp11-opc.c
pj-dis.c
pj-opc.c
ppc-dis.c libopcodes/ppc: add support for disassembler styling 2022-07-25 14:13:34 +01:00
ppc-opc.c PowerPC: Create new MMA instruction masks and use them 2022-07-21 14:53:52 -05:00
pru-dis.c
pru-opc.c
riscv-dis.c RISC-V: Fix disassembling Zfinx with -M numeric 2022-07-07 12:06:02 +08:00
riscv-opc.c RISC-V: Added Zfhmin and Zhinxmin. 2022-07-07 16:23:54 +08:00
rl78-decode.c
rl78-decode.opc
rl78-dis.c opcodes: remove use of PTR 2022-05-10 11:21:37 +09:30
rx-decode.c
rx-decode.opc
rx-dis.c opcodes: remove use of PTR 2022-05-10 11:21:37 +09:30
s12z-dis.c
s12z-opc.c
s12z-opc.h
s390-dis.c libopcodes/s390: add support for disassembler styling 2022-07-08 13:14:33 +01:00
s390-mkopc.c IBM zSystems: Add support for z16 as CPU name. 2022-04-07 07:54:29 +02:00
s390-opc.c IBM zSystems: mgrk, mg first operand requires register pair 2022-05-05 07:57:13 +02:00
s390-opc.txt IBM zSystems: mgrk, mg first operand requires register pair 2022-05-05 07:57:13 +02:00
score7-dis.c
score-dis.c
score-opc.h
sh-dis.c
sh-opc.h
sparc-dis.c
sparc-opc.c
spu-dis.c
spu-opc.c
sysdep.h
tic4x-dis.c
tic6x-dis.c
tic30-dis.c
tic54x-dis.c
tic54x-opc.c
tilegx-dis.c
tilegx-opc.c
tilepro-dis.c
tilepro-opc.c
v850-dis.c
v850-opc.c
vax-dis.c
visium-dis.c opcodes: remove use of PTR 2022-05-10 11:21:37 +09:30
visium-opc.c
wasm32-dis.c
xgate-dis.c
xgate-opc.c
xstormy16-asm.c
xstormy16-desc.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
xstormy16-desc.h
xstormy16-dis.c opcodes cgen: remove use of PTR 2022-05-11 09:49:20 +09:30
xstormy16-ibld.c
xstormy16-opc.c
xstormy16-opc.h
xtensa-dis.c
z8k-dis.c opcodes: remove use of PTR 2022-05-10 11:21:37 +09:30
z8k-opc.h
z8kgen.c
z80-dis.c