<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 - llvm::APInt llvm::APInt::zext(unsigned int) const: Assertion `width > BitWidth && "Invalid APInt ZeroExtend request"' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=38459">38459</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm::APInt llvm::APInt::zext(unsigned int) const: Assertion `width > BitWidth && "Invalid APInt ZeroExtend request"' failed.
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rakka@runbox.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20647" name="attach_20647" title="testcase IR">attachment 20647</a> <a href="attachment.cgi?id=20647&action=edit" title="testcase IR">[details]</a></span>
testcase IR
running 'llc -O3' on x86-64 on the attached testcase, LLVM 7 fails to compile
it with an assertion in llvm::SelectionDAG::computeKnownBits().
(the testcase is pocl's helper function for sin() and cos() OpenCL library
functions, in particular the vector-of-3 arguments variant; other vector sizes
seem to compile).
This is with LLVM 7.0 git 4bd72473d805587e6a6c63e676806a4bc2c73af1 SVN ID
338509.
Note that the attached bitcode compiles with LLVM 5 and 6, so this could be a
regression.</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>