[arm-gnu] [BUG]: Error: bad instruction `strhne r3,[r0]' WTF?

pps i-love-spam at yandex.ru
Wed Mar 28 03:11:26 UTC 2012


]
X-pstn-settings: 4 (1.5000:1.5000) s cv gt3 gt2 gt1 r p m c 
X-pstn-addresses: from <i-love-spam at yandex.ru> [db-null] 

On 26-Mar-12 11:37, Julian Brown wrote:
> On Mon, 26 Mar 2012 04:57:09 +0400
> i-love-spam<i-love-spam at yandex.ru>  wrote:
>
>> ]
>> X-pstn-settings: 4 (1.5000:1.5000) s cv gt3 gt2 gt1 r p m c
>> X-pstn-addresses: from<i-love-spam at yandex.ru>  [db-null]
>>
>> I simply have no explanation. It's a bug.
>>
>> here's the code:
>>
>> strhne r3,[r0]
>>
>> arm-none-eabi-gcc.exe -marm -g -D__ELF__ -mcpu=cortex-a8 -mfpu=neon
>> -c test.S -march=armv7-a -o test.S.o
>>
>>
>> I use:
>> gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-69)
>>
>>
>> any idea what's wrong, maybe I can use some alternative name that
>> GCC/binutils use for this opcode?
>
> Try using:
>
>    .syntax unified
>
> at the top of your assembly file, or write the instruction using
> non-unified syntax as:
>
>    strneh r3,[r0]
>


Hello Julian,

I'll try .syntax unified
By random luck after hours searching, I decided to try to rewrite asm 
and tried strneh instead of strhne and it worked. That's quite 
surprising that gnu assembler simply doesn't support opcode names listed 
in arm docs. At some point I also wasted some time with SAX and ASX, 
which I had to rename as addsubx and subaddx



More information about the arm-gnu mailing list