<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 `(ResTy == Op0Ty && ResTy == Op1Ty) && "type mismatch`"
href="https://bugs.llvm.org/show_bug.cgi?id=42701">42701</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion `(ResTy == Op0Ty && ResTy == Op1Ty) && "type mismatch`
</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>GlobalISel
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>llvm-dev@redking.me.uk
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, quentin.colombet@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Identified in <a href="https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15948">https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15948</a>
; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "llvm/test/Transforms/InstCombine/sdiv-2.ll"
target triple = "aarch64-unknown-unknown"
; Function Attrs: nounwind
define fastcc i32 @func(i32 %length) #0 {
entry:
%0 = icmp ne i32 %length, -1
%iftmp.13.0 = select i1 %0, i128 0, i128 200000000
%1 = sdiv i128 %iftmp.13.0, 10
br label %bb5
bb5: ; preds = %bb8, %entry
%v.0 = phi i128 [ 0, %entry ], [ %6, %bb8 ]
%2 = icmp sgt i128 %v.0, %1
br i1 %2, label %overflow, label %bb7
bb7: ; preds = %bb5
%3 = mul i128 %v.0, 10
%4 = sub i128 %iftmp.13.0, 0
%5 = icmp slt i128 %4, %3
br i1 %5, label %overflow, label %bb8
bb8: ; preds = %bb7
%6 = add i128 0, %3
br label %bb5
overflow: ; preds = %bb7, %bb5
ret i32 1
}
attributes #0 = { nounwind }
llc -mtriple=aarch64-- -global-isel fuzz.ll -o -
.text
.file "sdiv-2.ll"
llc:
/home/simon/LLVM/llvm-project/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp:907:
void llvm::MachineIRBuilder::validateSelectOp(const llvm::LLT&, const
llvm::LLT&, const llvm::LLT&, const llvm::LLT&): Assertion `(ResTy == Op0Ty &&
ResTy == Op1Ty) && "type mismatch"' failed.</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>