PowerPC objdump -Mraw

* ppc-dis.c (print_insn_powerpc) Don't skip optional operands
	when -Mraw is in effect.
This commit is contained in:
Alan Modra 2019-05-11 09:42:00 +09:30
parent 55cb8bb5a8
commit 0067be51e9
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2019-05-11 Alan Modra <amodra@gmail.com>
* ppc-dis.c (print_insn_powerpc) Don't skip optional operands
when -Mraw is in effect.
2019-05-09 Matthew Malcomson <matthew.malcomson@arm.com>
* aarch64-dis-2.c: Regenerate.

View File

@ -749,9 +749,11 @@ print_insn_powerpc (bfd_vma memaddr,
operand = powerpc_operands + *opindex;
/* If all of the optional operands have the value zero,
then don't print any of them. */
if ((operand->flags & PPC_OPERAND_OPTIONAL) != 0)
/* If all of the optional operands past this one have their
default value, then don't print any of them. Except in
raw mode, print them all. */
if ((operand->flags & PPC_OPERAND_OPTIONAL) != 0
&& (dialect & PPC_OPCODE_RAW) == 0)
{
if (!skip_optional)
skip_optional = skip_optional_operands (opindex, insn, dialect);