[PATCH] Thumb2 add immediate alias for SP

Mihail Popa mihail.popa at gmail.com
Mon Aug 19 03:20:58 PDT 2013


Hi. Please review the attached patch.

The Thumb2 add immediate is in fact defined for SP. The manual is
misleading as it points to a different section for add immediate with SP,
however the encoding is the same as for add immediate with register only
with the SP operand hard coded. As such add immediate with SP and add
immediate with register can safely be treated as the same instruction.

All the patch does is adjust a register constraint on an instruction alias.

Regards,
Mihai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130819/26fd92a3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LLVM-826.t2addalias.patch
Type: application/octet-stream
Size: 1558 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130819/26fd92a3/attachment.obj>


More information about the llvm-commits mailing list