<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - clang crash when assembling load from .quad for AArch32" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23870&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=4WXDIzJFeLmCOUQTVF_xYvgp9nk9WnfQw40-teknZhY&s=91vrFlWvmdcumK4vi2ojoDsf3lG00z-5DTVLqLN5Tcc&e=">23870</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang crash when assembling load from .quad for AArch32
          </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>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>Backend: ARM
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>richard.barton@arm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=14481" name="attach_14481" title="Commandline from crash report">attachment 14481</a> <a href="attachment.cgi?id=14481&action=edit" title="Commandline from crash report">[details]</a></span>
Commandline from crash report

The following assembly code causes a syserr in the llvm backend for ARMv8
AArch32

    ldr  r1, bar
...
.align 3
bar:
  .quad(symbol)

The pertinent information in the stack dump seems to be:

Unknown fixup kind!
UNREACHABLE executed at
.../llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp:326!
Then a stack dump.

Reproducer attached.

I think this is incorrect input as this assembly would probably load half of
the quadword into r1 (endianness dependent) which is probably not what the user
wants. Instead there should be some sort of graceful failure message as there
is no 64-bit relocation available.</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>