[llvm-commits] patch: THUMB2 support for PUSH a single reg

liangh at codeaurora.org liangh at codeaurora.org
Fri Oct 19 16:02:52 PDT 2012


Hi,

Currently, LLVM doesn't generate PUSH instructions for THUMB2 when a
single register is pushed.
For example, it issues "str r7, [sp, #-4]!" but not "push {r7}".

This patch adds THUMB2 support for PUSH instruction with a single
register. So that a real PUSH instruction will be generated for this case.
I.e.: str r7, [sp, #-4]! => push {r7}

Could you please review the attached patch?
Thanks.

-Liang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-Thumb2-support-for-PUSH-instruction-with-a-singl.patch
Type: application/octet-stream
Size: 6857 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121019/84ec193b/attachment.obj>


More information about the llvm-commits mailing list