[PATCH] [Thumb/Thumb2] Added restrictions on PC, LR, SP in the register list for PUSH/POP/LDM/STM

Jyoti Allur jyoti.allur at samsung.com
Mon Nov 3 07:36:44 PST 2014


Hi t.p.northover,

This patch implements the following from ARM ARM for v7m

PUSH				The SP and PC cannot be in the list 
POP			        	The SP cannot be in the list. If the PC is in the list, the LR must not be in the list

Apart this following is added, 
LDM, LDMIA, LDMDB  	The SP cannot be in the list. If the PC is in the list, the LR must not be in the list, not in ITBLOCK    
STM, STMIA, STMDB 	The SP and PC cannot be in the list

http://reviews.llvm.org/D6090

Files:
  llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
  llvm/test/MC/ARM/thumb-diagnostics.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6090.15707.patch
Type: text/x-patch
Size: 9395 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141103/72d2266b/attachment.bin>


More information about the llvm-commits mailing list