[LLVMbugs] [Bug 9175] New: ARM assertion failed when disassembling LDM & STM

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 9 09:23:40 PST 2011


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

           Summary: ARM assertion failed when disassembling LDM & STM
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: crabtw at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Message:

================

$ echo '0x10 0x00 0x93 0xe8'|Debug+Asserts/bin/llvm-mc -arch=arm --disassemble
-debug
Args: Debug+Asserts/bin/llvm-mc -arch=arm --disassemble -debug
Opcode=130 Name=LDMIA Format=ARM_FORMAT_LDSTMULFRM(10)
 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10  9  8  7  6 
5  4  3  2  1  0
-------------------------------------------------------------------------------------------------
| 1: 1: 1: 0| 1: 0: 0: 0| 1: 0: 0: 1| 0: 0: 1: 1| 0: 0: 0: 0| 0: 0: 0: 0| 0: 0:
0: 1| 0: 0: 0: 0|
-------------------------------------------------------------------------------------------------

llvm-mc:
/home/jyyou/src/llvm-trunk/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp:1241:
bool DisassembleLdStMulFrm(llvm::MCInst&, unsigned int, uint32_t, short
unsigned int, unsigned int&, llvm::ARMBasicMCBuilder*): Assertion `NumOps >= 5
&& "LdStMulFrm expects NumOps >= 5"' failed.

================

It works fine while changing NumOps >= 5 into NumOps >= 4.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list