[LLVMdev] LDMIA instruction allows high registers for v7m architechture

Tim Northover t.p.northover at gmail.com
Fri Oct 10 09:43:57 PDT 2014

Hi Jyoti,

On 10 October 2014 04:01, Jyoti Rajendra Allur <jyoti.allur at samsung.com> wrote:
> cat ldmstm.s :-
>   ldmia r0!,{r1-r3,r13, r15}

The actual problem here is that we allow r13 (i.e. sp). There is a
syntax variant on v7M with high registers, but it has odd restrictions
around r13-r15 that we get wrong at the moment.

For more details, the canonical document is always ARM's Architecture
Reference Manual (v7M version). Section A7.7.40 in this case, and you
can find a copy at
http://infocenter.arm.com/help/topic/com.arm.doc.ddi0403- (free
registration unfortunately required).



More information about the llvm-dev mailing list