[LLVMbugs] [Bug 4166] Assert while trying to compile using ldc with arm as target on x86 host

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon May 18 06:33:32 PDT 2009


Xerxes Rånby <xerxes at zafena.se> changed:

           What    |Removed                     |Added
                 CC|                            |xerxes at zafena.se
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #3 from Xerxes Rånby <xerxes at zafena.se>  2009-05-18 08:33:31 ---
I have tested running the reduced testcase.ll using llc
This bug asserts on ARM using the thumb backend so i have reopened the bug.
The test case work using -march=arm and fails using -march=thumb


root at overo:~/llvm-test/fail# llvm-as < pr4166.ll  | llc -march=arm
        .file   "<stdin>"

        .align  2
        stmfd sp!, {r11, lr}
        sub sp, sp, #8
        @ implicit-def: r3
        str r3, [sp]
        mov r0, #0
        ldr r3, [r0]
        mov r2, #4
        ldr r2, [r2]
        str r2, [sp, #+8]
        str r3, [sp, #+4]
        @ implicit-def: r1
        @ implicit-def: r2
        @ implicit-def: r3
        @ implicit-def: lr
        mov lr, pc
        bx r0
        add sp, sp, #8
        ldmfd sp!, {r11, pc}


root at overo:~/llvm-test/fail# llvm-as < pr4166.ll  | llc -march=thumb
Assertion `(!IsLegalizingCall || Node->getOpcode() != ISD::CALL ||
Tmp3.getNode()->getOpcode() != ISD::CALLSEQ_END) && "Nested
CALLSEQ_START..CALLSEQ_END not supported."' failed.
Stack dump:
0.      Program arguments: llc -march=thumb 
1.      Running pass 'ARM Instruction Selection' on function
root at overo:~/llvm-test/fail# 

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