<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Crash when compiling function returning zeroext i2"
href="http://llvm.org/bugs/show_bug.cgi?id=19635">19635</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash when compiling function returning zeroext i2
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jaak.randmets@cyber.ee
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>When trying to compile the following code:
define zeroext i2 @crash () {
ret i2 0
}
with llc I get crash and following stack trace:
$ llc crash.ll
0 libLLVM-3.5.0svn.so 0x00007ffe0a0e5dd2 llvm::sys::PrintStackTrace(_IO_FILE*)
+ 34
1 libLLVM-3.5.0svn.so 0x00007ffe0a0e597c
2 libpthread.so.0 0x00007ffe097dfbb0
3 libLLVM-3.5.0svn.so 0x00007ffe0a538124 llvm::EVT::isExtendedVector() const +
4
4 libLLVM-3.5.0svn.so 0x00007ffe0a20f70d
5 libLLVM-3.5.0svn.so 0x00007ffe0a2259f5
llvm::SelectionDAGBuilder::visitRet(llvm::ReturnInst const&) + 1013
6 libLLVM-3.5.0svn.so 0x00007ffe0a240bd4
llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 52
7 libLLVM-3.5.0svn.so 0x00007ffe0a24c2a1
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 49
8 libLLVM-3.5.0svn.so 0x00007ffe0a24f172
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1170
9 libLLVM-3.5.0svn.so 0x00007ffe0a250471
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 929
10 libLLVM-3.5.0svn.so 0x00007ffe0a518f90
llvm::FPPassManager::runOnFunction(llvm::Function&) + 656
11 libLLVM-3.5.0svn.so 0x00007ffe0a51902b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
12 libLLVM-3.5.0svn.so 0x00007ffe0a51b3f8
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 728
13 llc 0x000000000040d6b2
14 llc 0x0000000000408420 main + 224
15 libc.so.6 0x00007ffe085a2965 __libc_start_main + 245
16 llc 0x0000000000408479
Stack dump:
0. Program arguments: llc crash.ll
1. Running pass 'Function Pass Manager' on module 'crash.ll'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@crash'</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>