Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assertion failed while compiling libmng #1383

Closed
asl opened this issue Nov 19, 2006 · 3 comments
Closed

assertion failed while compiling libmng #1383

asl opened this issue Nov 19, 2006 · 3 comments
Assignees
Labels
backend:X86 bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead

Comments

@asl
Copy link
Collaborator

asl commented Nov 19, 2006

Bugzilla Link 1011
Resolution FIXED
Resolved on Feb 22, 2010 12:43
Version trunk
OS Linux
Attachments Reduced sources, Original sources

Extended Description

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.

@asl
Copy link
Collaborator Author

asl commented Nov 19, 2006

assigned to @lattner

@lattner
Copy link
Collaborator

lattner commented Nov 20, 2006

verified

@lattner
Copy link
Collaborator

lattner commented Nov 20, 2006

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

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
clementval pushed a commit to clementval/llvm-project that referenced this issue Jan 17, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:X86 bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead
Projects
None yet
Development

No branches or pull requests

2 participants