http://llvm.org/bugs/show_bug.cgi?id=17674

            Bug ID: 17674
           Summary: [AArch64] MachineInstr verifier fails due to nested
                    ADJCALLSTACK
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 11419
  --> http://llvm.org/bugs/attachment.cgi?id=11419&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to