[LLVMbugs] [Bug 3317] New: APint error during x86 lowering

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Jan 12 10:07:06 PST 2009


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

           Summary: APint error during x86 lowering
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicolas.geoffray at lip6.fr
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=2381)
 --> (http://llvm.org/bugs/attachment.cgi?id=2381)
Bug test case

With the attached test case, I try to compile with llc -march=x86 (other
platforms work) but get the error:

llc: APInt.cpp:942: llvm::APInt& llvm::APInt::zext(uint32_t): Assertion `width
> BitWidth && "Invalid APInt ZeroExtend request"' failed.
0   llc       0x08a241ee
1             0xffffe420  + 0
2             0xffffe410  + 16
3   libc.so.6 0xb7cf4d90 gsignal + 80
4   libc.so.6 0xb7cf67f8 abort + 392
5   libc.so.6 0xb7cedcce __assert_fail + 238
6   llc       0x089e66c2 llvm::APInt::zext(unsigned int) + 242
7   llc       0xffffffff llvm::APInt::zext(unsigned int) + 4150368815


The complete backtrace is:

#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7d06d90 in raise () from /lib/i686/libc.so.6
#2  0xb7d087f8 in abort () from /lib/i686/libc.so.6
#3  0xb7cffcce in __assert_fail () from /lib/i686/libc.so.6
#4  0x089e66c2 in llvm::APInt::zext ()
#5  0x0867cb1b in llvm::TargetLowering::SimplifyDemandedBits ()
#6  0x0867f3b4 in llvm::TargetLowering::SimplifyDemandedBits ()
#7  0x0859924f in (anonymous namespace)::DAGCombiner::SimplifyDemandedBits ()
#8  0x085ad7b3 in (anonymous namespace)::DAGCombiner::visitXOR ()
#9  0x085c3dac in (anonymous namespace)::DAGCombiner::visit ()
#10 0x085c4844 in (anonymous namespace)::DAGCombiner::combine ()
#11 0x085c6096 in (anonymous namespace)::DAGCombiner::Run ()
#12 0x085c65d0 in llvm::SelectionDAG::Combine ()
#13 0x08663f72 in llvm::SelectionDAGISel::CodeGenAndEmitDAG ()
#14 0x08665c68 in llvm::SelectionDAGISel::SelectBasicBlock ()
#15 0x08667be3 in llvm::SelectionDAGISel::SelectAllBasicBlocks ()
#16 0x08668f80 in llvm::SelectionDAGISel::runOnFunction ()
#17 0x089a5f2e in llvm::FPPassManager::runOnFunction ()
#18 0x089a6b4c in llvm::FunctionPassManagerImpl::run ()
#19 0x089a6d7f in llvm::FunctionPassManager::run ()
#20 0x08118cb4 in main ()


-- 
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