[llvm-bugs] [Bug 33134] New: Invalid LDR instruction with XZR

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 22 17:08:50 PDT 2017


            Bug ID: 33134
           Summary: Invalid LDR instruction with XZR
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: kongy.dev at gmail.com
                CC: llvm-bugs at lists.llvm.org

Constant 0 is optimized to XZR in an ASM load instruction, which is illegal.

$ llc ldr0_aarch64.ll 
<inline asm>:1:11: error: invalid operand for instruction
        ldr x8, [xzr] 
note: !srcloc = 67

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170523/aa3254f2/attachment.html>

More information about the llvm-bugs mailing list