LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 1011 - assertion failed while compiling libmng
Summary: assertion failed while compiling libmng
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Backend: X86 (show other bugs)
Version: trunk
Hardware: PC Linux
: P normal
Assignee: Chris Lattner
URL:
Keywords: compile-fail
Depends on:
Blocks:
 
Reported: 2006-11-19 14:59 PST by Anton Korobeynikov
Modified: 2010-02-22 12:43 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments
Reduced sources (838 bytes, application/octet-stream)
2006-11-19 15:01 PST, Anton Korobeynikov
Details
Original sources (38.47 KB, application/octet-stream)
2006-11-19 15:01 PST, Anton Korobeynikov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Korobeynikov 2006-11-19 14:59:50 PST
While compiling libmng (via llvm-gcc4 -O2) I've got an assertion:

cc1: /home/asl/proj/llvm/src/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1116:
llvm::SDOperand llvm::SelectionDAG::getNode(unsigned int, llvm::MVT::ValueType,
llvm::SDOperand): Assertion `Operand.getValueType() > VT && "Invalid truncate
node, src < dst!"' failed.
libmng_pixels.i:137: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs> for instructions.

Please find:
1. Original source
2. Reduced sources (via delta).

Everything was ok without any optimizations (but no ok with just -O), so the
problem itself can be not in backend, but in some optimization passes.
Comment 1 Anton Korobeynikov 2006-11-19 15:01:12 PST
Created attachment 467 [details]
Reduced sources
Comment 2 Anton Korobeynikov 2006-11-19 15:01:31 PST
Created attachment 468 [details]
Original sources
Comment 3 Chris Lattner 2006-11-20 12:01:19 PST
verified
Comment 4 Chris Lattner 2006-11-20 12:06:37 PST
Fixed, patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061120/040136.html

Testcase here: CodeGen/Generic/2006-11-20-DAGCombineCrash.ll

-Chris