[llvm-bugs] [Bug 25722] ARM: integrated assembler should replace "ldr rX, =imm" with "mov rX, #imm" if imm can be encoded as immediate
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 13 09:10:26 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=25722
Peter Smith <peter.smith at linaro.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #16 from Peter Smith <peter.smith at linaro.org> ---
I've put in a fix that has been committed upstream.
ldr rt, =expr will be transformed into mov rt, expr when expr can be evaluated
to a constant and the operands can be represented by an available mov
instruction.
It does not support fixups so if expr can't be evaluated to a constant at the
time ldr rt, =expr is encountered, but can be later in the file then a constant
pool will still be generated.
http://reviews.llvm.org/D20153
http://reviews.llvm.org/D20154
http://reviews.llvm.org/D20155
committed with revisions:
r269352
r269353
r269354
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160513/194084c9/attachment.html>
More information about the llvm-bugs
mailing list