<html>
    <head>
      <base href="http://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 --- - [AArch64] MachineInstr verifier fails due to nested ADJCALLSTACK"
   href="http://llvm.org/bugs/show_bug.cgi?id=17674">17674</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[AArch64] MachineInstr verifier fails due to nested ADJCALLSTACK
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>amara.emerson@gmail.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=11419" name="attach_11419" title="Test case">attachment 11419</a> <a href="attachment.cgi?id=11419&action=edit" title="Test case">[details]</a></span>
Test case

When attempting to codegen the attached test case using llc -march=aarch64
-verify-machineinstrs we get a verifier fault ending with:

*** Bad machine code: FrameSetup is after another FrameSetup ***
- function:    ch63
- basic block: BB#0 entry (0x1c98900)
- instruction: ADJCALLSTACKDOWN 0, %XSP<imp-def,dead>, %XSP<imp-use>

*** Bad machine code: FrameDestroy is not after a FrameSetup ***
- function:    ch63
- basic block: BB#0 entry (0x1c98900)
- instruction: ADJCALLSTACKUP 0, 0, %XSP<imp-def,dead>, %XSP<imp-use>
LLVM ERROR: Found 2 machine code errors.

Filing as a bug since the AArch64 backend should emit verifier-friendly code.</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>