[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sh3-dsp instruction "movs.l Ds,@-As" assembles wrong
From: |
Greg Ungerer |
Subject: |
sh3-dsp instruction "movs.l Ds,@-As" assembles wrong |
Date: |
Thu, 27 Sep 2001 12:23:44 +1000 |
Hi All,
I have found a problem with gas assembling wrong the
sh3 (dsp) instruction "movs.l Ds,@-As".
For example:
movs.l a1, @-r2
assembles to:
164e: 5c f6 movs.l a1,@-r6
(as dumped by objdump).
But the 0xf65c is the wrong opcode. It should be 0xf653.
I am using the HITACHI e602096_sh3pm.pdf doco to verify
the correct opcodes. And I have verified on real hardware
that the doco and 0xf653 is correct.
(Objdump even gets the dis-assemble wrong too :-)
I generated this on a 001117 snaphot of binutils configured
as target sh3-linux.
But I can see from the CVS at http://sources.redhat.com/binutils/
that the file opcodes/sh-opc.h still has the opcodes wrong.
I think some of the other "movs" opcodes are wrong here too.
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Wizard EMAIL: address@hidden
Lineo (Integrated Products Group) PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: www.lineo.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- sh3-dsp instruction "movs.l Ds,@-As" assembles wrong,
Greg Ungerer <=