[LLVMbugs] [Bug 19320] New: Gnu Assembler compatibility fails on ldrd r12, [...]

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 3 03:30:54 PDT 2014


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

            Bug ID: 19320
           Summary: Gnu Assembler compatibility fails on ldrd r12, [...]
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: stpworld at narod.ru
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12331
  --> http://llvm.org/bugs/attachment.cgi?id=12331&action=edit
Test case

GNU Assembler compatibility fails on several commands:
ldrd    r12, [r0, #32]
strd    r12, [r0, #32]

The trouble as in ARMAsmParser, in ParseInstruction method. It assumes that
ARM::R12 + 1 == ARM::SP.
It is wrong, since ARM::<Register> codes are generated by tablegen and actually
could be any random numbers.

I think its critical misbehaviour. So first fast fix patch will be sent to
LLVM-Commits.
While actually I would like get rid of

// GNU Assembler extension (compatibility)
...

in further commits.

-- 
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/20140403/93f7f252/attachment.html>


More information about the llvm-bugs mailing list