[PATCH] Add range checking for Thumb2 PC-relative loads

Mihail Popa mihail.popa at arm.com
Mon Jul 22 03:51:28 PDT 2013


Hi.

Kindly review the attached patch. It adds range checking for "ldr Rn, 
[pc, #imm]" Thumb
instructions. With this patch:

1. ldr.n is recognized as mnemonic for the short encoding
2. ldr.w is recognized as menmonic for the long encoding
3. ldr will map to either short or long encodings depending on the size 
of the offset

Regards,
Mihai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130722/7785e88c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LLVM-801.ldrpcrel.patch
Type: text/x-patch
Size: 10150 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130722/7785e88c/attachment.bin>


More information about the llvm-commits mailing list