<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:renato.golin@linaro.org" title="Renato Golin <renato.golin@linaro.org>"> <span class="fn">Renato Golin</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Apple clang 4.2 based on llvm 3.2 produces a wrong "instruction requires:arm-mode"‏"
   href="https://llvm.org/bugs/show_bug.cgi?id=16315">bug 16315</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;">CC</td>
           <td>
                
           </td>
           <td>renato.golin@linaro.org
           </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 - Apple clang 4.2 based on llvm 3.2 produces a wrong "instruction requires:arm-mode"‏"
   href="https://llvm.org/bugs/show_bug.cgi?id=16315#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Apple clang 4.2 based on llvm 3.2 produces a wrong "instruction requires:arm-mode"‏"
   href="https://llvm.org/bugs/show_bug.cgi?id=16315">bug 16315</a>
              from <span class="vcard"><a class="email" href="mailto:renato.golin@linaro.org" title="Renato Golin <renato.golin@linaro.org>"> <span class="fn">Renato Golin</span></a>
</span></b>
        <pre>Seems to be working now...

$ cat asm.s
.thumb
add r2, pc, r2

$ llvm-mc -triple thumbv4t-none-eabi asm.s -filetype=obj -o asm.o

$ llvm-objdump -triple thumbv4t-none-eabi -d asm.o
Disassembly of section .text:
$t.0:
       0:    7a 44     add    r2, pc</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>