<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 - AArch64 assembler does not support pseudo instruction LDR q0,=<128-bit value>"
   href="https://bugs.llvm.org/show_bug.cgi?id=46971">46971</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>AArch64 assembler does not support pseudo instruction LDR q0,=<128-bit value>
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Backend: AArch64
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>smithp352@googlemail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>arnaud.degrandmaison@arm.com, llvm-bugs@lists.llvm.org, smithp352@googlemail.com, Ties.Stuij@arm.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>LLVM supports this pseudo instruction for S and X registers (32 and 64-bit)
instructions, but it does not support Q registers.

For example:
 .text
 ldr q0,=0x123456781234567812345678

clang --target=aarch64-linux-gnu ldrtest.s
ldr_test.s:2:10: error: literal value out of range for directive
 ldr q0,=0x123456781234567812345678

GCC does support this pseudo instruction, translating it to
0x0 ldr q0, <$d>
...
<$d>
0x10 .word 0x12345678
0x14 .word 0x12345678
0x18 .word 0x12345678
0x1c .word 0x00000000

As a pseudo instruction without a specification of what registers it should
handle; I don't think that this is a critical problem, but it would be nice to
have parity between GCC and LLVM.</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>