This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH, ARM] MSR/MRS assembly and disassembly tweaks
On Tue, Apr 12, 2011 at 8:59 PM, Hans-Peter Nilsson
<hans-peter.nilsson@axis.com> wrote:
>> Date: Mon, 4 Apr 2011 15:07:28 +0100
>> From: Julian Brown <julian@codesourcery.com>
>
>> This patch improves handling of MSR and MRS instructions in GAS, and
>> also improves disassembly output in a couple of cases.
>
> Please fix the resulting fallout from the src/sim testsuite for
> arm-elf with the arm-sim board. ?It has regressed in the last
> 24h, like so:
>
> Running /tmp/hpautotest-sim/src/sim/testsuite/sim/arm/allinsn.exp ...
> Testing adc.cgs on machine xscale.
> Executing on host: arm-elf-as /tmp/hpautotest-sim/src/sim/testsuite/sim/arm/adc.cgs ?-I/tmp/hpautotest-sim/src/sim/testsuite/sim/arm ?-o adc.cgs.o ? ?(timeout = 300)
> /tmp/hpautotest-sim/src/sim/testsuite/sim/arm/adc.cgs: Assembler messages:
> /tmp/hpautotest-sim/src/sim/testsuite/sim/arm/adc.cgs:15: Error: selected processor does not support requested special purpose register -- `mrs r1,cpsr'
>
> I guess it could be Nick's recent patch, but...nah.
>
> brgds, H-P
>
Further to this, it seems that most uses of mrs/msr, and all uses of
the name "cpsr" are now broken...
$ arm-linux-gnueabi-as -march=armv7-a -o tst.o
mrs r0, apsr
msr apsr_nzcvq, r0
mrs r0, cpsr
msr cpsr, r0
msr cpsr_c, r0
{standard input}: Assembler messages:
{standard input}:1: Error: 'APSR', 'CPSR' or 'SPSR' expected -- `mrs r0,apsr'
{standard input}:3: Error: selected processor does not support
requested special purpose register -- `mrs r0,cpsr'
{standard input}:4: Error: selected processor does not support
requested special purpose register -- `msr cpsr,r0'
{standard input}:5: Error: selected processor does not support
requested special purpose register -- `msr cpsr_c,r0'
---Dave