PPC simplified mnemonics
Alan Modra
amodra@bigpond.net.au
Wed Apr 5 00:35:00 GMT 2006
On Tue, Apr 04, 2006 at 06:35:29PM -0400, Andrew Pinski wrote:
> mtctrl conflicts with a PPC 860 simplified mnemonics
Err, I don't see mtctrl/mfctrl in ppc-opc.c. Ah, you mean that
mtspr 152,rx currently disassembles as ppc860 insn mtcmpe. Put the
mtctrl/mfctrl before the ppc860 insns, conditional on POWER4. This
will give you mtctrl when disassembling with -Mpower4.
Personally, I dislike extended mnemonics in disassembly simply because
they can be ambiguous due to different processors defining their own
spr use. I'd rather see mtspr/mfspr (with exception of really well
known sprs like lr,ctr!) in disassembly unless the user gives a specific
cpu. Maybe I'll rework the ppc opcodes table some time to do that.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list