[PATCH] Solve three issues with Thumb literal loads

Mihail Popa mihail.popa at gmail.com
Thu Aug 15 04:48:50 PDT 2013


Hi. Please review the attached patch.

It solves three issues with Thumb literal loads, namely:

1. The offset range for Thumb1 PC relative loads is [0..1020] and not
[-1024..1020]
2. Thumb2 PC relative loads may define the PC, so the restriction placed on
target register is removed
3. Removes unneeded alias between "ldr.n" and t1LDRpci. ".n" is actually
stripped by both tablegen
and the ASM parser, so this alias rule really does nothing

Regards,
Mihai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130815/2034ae65/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LLVM-831.tLDRpci.patch
Type: application/octet-stream
Size: 5771 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130815/2034ae65/attachment.obj>


More information about the llvm-commits mailing list