[LLVMbugs] [Bug 3032] New: Switch instruction gives an assertion error in SelectionDAGLowering:: handleBTSplitSwitchCase
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sun Nov 9 09:40:48 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=3032
Summary: Switch instruction gives an assertion error in
SelectionDAGLowering::handleBTSplitSwitchCase
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicolas.geoffray at lip6.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2190)
--> (http://llvm.org/bugs/attachment.cgi?id=2190)
Switch error
The following test case gives an assertion error:
$ ./Release/bin/llvm-as < switch.ll | ./Release/bin/llc -f
llc: SelectionDAGBuild.cpp:1740: bool
llvm::SelectionDAGLowering::handleBTSplitSwitchCase(llvm::SelectionDAGLowering::CaseRec&,
std::vector<llvm::SelectionDAGLowering::CaseRec,
std::allocator<llvm::SelectionDAGLowering::CaseRec> >&, llvm::Value*,
llvm::MachineBasicBlock*): Assertion `(RBegin-LEnd>=1) && "Invalid case
distance"' failed.
./Release/bin/llc[0x89fbf08]
[0xb7ef2420]
[0xb7ef2410]
/lib/tls/i686/cmov/libc.so.6(gsignal+0x55)[0xb7c79085]
/lib/tls/i686/cmov/libc.so.6(abort+0x101)[0xb7c7aa01]
/lib/tls/i686/cmov/libc.so.6(__assert_fail+0xee)[0xb7c7210e]
./Release/bin/llc(_ZN4llvm20SelectionDAGLowering23handleBTSplitSwitchCaseERNS0_7CaseRecERSt6vectorIS1_SaIS1_EEPNS_5ValueEPNS_17MachineBasicBlockE+0x90f)[0x867183f]
Aborted
--
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