[LLVMbugs] [Bug 23870] New: clang crash when assembling load from .quad for AArch32

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 17 08:05:45 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23870

            Bug ID: 23870
           Summary: clang crash when assembling load from .quad for
                    AArch32
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: richard.barton at arm.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

-- 
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/20150617/5054a1fb/attachment.html>


More information about the llvm-bugs mailing list