<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:peter.smith@linaro.org" title="Peter Smith <peter.smith@linaro.org>"> <span class="fn">Peter Smith</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - ARM: integrated assembler should replace "ldr rX, =imm" with "mov rX, #imm" if imm can be encoded as immediate"
   href="https://llvm.org/bugs/show_bug.cgi?id=25722">bug 25722</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - ARM: integrated assembler should replace "ldr rX, =imm" with "mov rX, #imm" if imm can be encoded as immediate"
   href="https://llvm.org/bugs/show_bug.cgi?id=25722#c16">Comment # 16</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - ARM: integrated assembler should replace "ldr rX, =imm" with "mov rX, #imm" if imm can be encoded as immediate"
   href="https://llvm.org/bugs/show_bug.cgi?id=25722">bug 25722</a>
              from <span class="vcard"><a class="email" href="mailto:peter.smith@linaro.org" title="Peter Smith <peter.smith@linaro.org>"> <span class="fn">Peter Smith</span></a>
</span></b>
        <pre>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.

<a href="http://reviews.llvm.org/D20153">http://reviews.llvm.org/D20153</a>
<a href="http://reviews.llvm.org/D20154">http://reviews.llvm.org/D20154</a>
<a href="http://reviews.llvm.org/D20155">http://reviews.llvm.org/D20155</a> 

committed with revisions:
r269352
r269353
r269354</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>