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: [patch] Enable power7 disassembling


On Thu, 2009-03-05 at 23:43 +0100, Jan Kratochvil wrote:
> On Tue, 03 Mar 2009 22:31:04 +0100, Peter Bergner wrote:
> > The disassembler happily chooses the first matching instruction
> > it comes across in the opcode table, which happens to be POWER2's
> 
> Still getting (but only) these differences:
> 
> $ ./gas/as-new -o power7.o -mpower7 ./gas/testsuite/gas/ppc/power7.s 
> $ ./binutils/objdump -d -Many power7.o >d-any
> $ ./binutils/objdump -d -Mpower7 power7.o >d-power7
> $ diff -u d-any d-power7 
> -  98:	7d 5c 02 a6 	mfspr   r10,28
> +  98:	7d 5c 02 a6 	mfcfar  r10
> -  9c:	7d 7c 03 a6 	mtspr   28,r11
> +  9c:	7d 7c 03 a6 	mtcfar  r11
> - 14c:	7e 08 4a 2c 	dcbt    16,r8,r9
> + 14c:	7e 08 4a 2c 	dcbtt   r8,r9
> - 150:	7e 08 49 ec 	dcbtst  16,r8,r9
> + 150:	7e 08 49 ec 	dcbtstt r8,r9
> 
> Is -Mpower7 therefore still required or could be the current `d-any' variants
> also overriden for -Many by their `d-power7' variants?

Technically, there is nothing wrong here.  The -Mpower7 mnemonics are new
extended opcodes for the -Many mnemonics, so both outputs are valid and
correct.

Peter




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