[PATCH, ARM] Fix error handling for pc-relative VSTR in Thumb mode.

Ramana Radhakrishnan ramrad01@arm.com
Mon Mar 11 15:56:00 GMT 2013



> diff --git a/gas/testsuite/gas/arm/neon-addressing-bad.s b/gas/testsuite/gas/arm/neon-addressing-bad.s
> index c134ead..773ec43 100644
> --- a/gas/testsuite/gas/arm/neon-addressing-bad.s
> +++ b/gas/testsuite/gas/arm/neon-addressing-bad.s
> @@ -21,3 +21,5 @@ VST1.8 {D0}, R0
>   VST1.8 {Q1}, R0
>   VST1.8 {D0}, [PC]
>   VST1.8 {D0}, [PC, #0]
> +VSTR D0, [PC]
> +VSTR D0, [PC, #0]
>

For bonus points (though I'm no maintainer), it would be nice for the 
disassembler to print out UNPREDICTABLE on disassembling such 
instructions. See what Kyryll did recently with the crc instructions as 
an example and other existing practice in the disassembler.

You can create testcases using the .inst directives.


regards,
Ramana




More information about the Binutils mailing list