<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ARM assembler refuses to assemble instruction"
   href="https://bugs.llvm.org/show_bug.cgi?id=51297">51297</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ARM assembler refuses to assemble instruction
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jacobnavia7@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>jacob@rock64:~/lcc/book/test$ cat bug.s
        .text
main:
        ldr x15,=0x401acccccccccccd # assembles and executes correctly
        ldr d15,=0x401acccccccccccd # <<<<<<<<<< BUG <<<<<<<<<<<<<
        ret
        .pool
.L9:
        .size main,.L9-main
        .globl main
jacob@rock64:~/lcc/book/test$ clang bug.s
bug.s:4:10: error: Immediate too large for register
        ldr d15,=0x401acccccccccccd
                ^
jacob@rock64:~/lcc/book/test$ as -c -o bug bug.s
jacob@rock64:~/lcc/book/test$ 

As you can see, "as" (gnu as) assembles correctly the SAME program. Now, at the
execution, the instruction DOESN'T WORK at all. Some rubbish is loaded into
d15.
Is this a bug in clang?
Or is this a bug in "as" that assembles an incorrect instruction?
Or is this a bug in clang AND as?
Or is this a bug in the rockchip processor that doesn't do what is supposed to
do?
Or is this a bug in  the documentation that doesn't warn that d15 shouldn't be
used with "ldr"?

PLEEEEEEEZE enlightmen me.

Thanks</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>