Re: [arm-gnu] How to make gas accept Thumb2 insns on armv6-m ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] How to make gas accept Thumb2 insns on armv6-m ?



On 08.06.2009 17:06, Paul Brook wrote:
In particular, just adding ".syntax unified" leads to other errors
toto.s:3: Error: cannot honor width suffix -- `mul r3,r0,r3'
toto.s:4: Error: cannot honor width suffix -- `mul ip,r2,r1'
I'm not entirely sure about this error in the first case, since that
ought to be valid as a 16-bit mul, shouldn't it?

The 16-bit form is muls.

Paul


Thanks to both of you for your prompt support!

Actually I have been using an ARM-v7M reference manual, which I thought to cover v6M too. I am trying to get a v6M manual to check if it's clearer.

I will try not to bother you more, as my problem seems related to understanding ARM manuals rather than using Code Sourcery tools :-)

(for example, I can't find the page which describes why the instructions involved implicitly require wide encodings)

Thanks
Christophe.