This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PPC simplified mnemonics


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]