<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - Assertion `(!To[i].getNode() || N->getValueType(i) == To[i].getValueType()) && "Cannot combine value to value of different type!"' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=32545">32545</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion `(!To[i].getNode() || N->getValueType(i) == To[i].getValueType()) && "Cannot combine value to value of different type!"' failed.
</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>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Common Code Generator Code
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>efriedma@codeaurora.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, niravd@google.com
</td>
</tr></table>
<p>
<div>
<pre>Testcase (input to llc):
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "armv7--linux-gnueabi"
define void @f(i32 %dstStride, i8* %indvars.iv, <2 x i8>* %zz) {
entry:
br label %for.body
for.body:
%tmp = load <2 x i8>, <2 x i8>* %zz, align 1
%tmp1 = extractelement <2 x i8> %tmp, i32 0
%.lhs.rhs = zext i8 %tmp1 to i32
call void @g(i32 %.lhs.rhs)
br label %for.body
}
declare void @g(i32)
Crashes like this:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:919: llvm::SDValue (anonymous
namespace)::DAGCombiner::CombineTo(llvm::SDNode *, const llvm::SDValue *,
unsigned int, bool): Assertion `(!To[i].getNode() || N->getValueType(i) ==
To[i].getValueType()) && "Cannot combine value to value of different type!"'
failed.
This is a recent regression caused by r298920.</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>