This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PPC simplified mnemonics
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: binutils at sourceware dot org, andrew_pinski at playstation dot sony dot com
- Date: Wed, 5 Apr 2006 10:05:51 +0930
- Subject: Re: PPC simplified mnemonics
- References: <200604042235.k34MZTn4014715@earth.phy.uc.edu>
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