<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 - Instruction selection fails for %llvm.ppc.altivec.vct* with a non-zero argument"
href="https://bugs.llvm.org/show_bug.cgi?id=44239">44239</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Instruction selection fails for %llvm.ppc.altivec.vct* with a non-zero argument
</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: PowerPC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>colin.samples@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, nemanja.i.ibm@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=22912" name="attach_22912" title="C reproducer">attachment 22912</a> <a href="attachment.cgi?id=22912&action=edit" title="C reproducer">[details]</a></span>
C reproducer
Use of __builtin_altivec_vctsxs, __builtin_altivec_vctsxs,
__builtin_altivec_vctuxs, __builtin_altivec_vcfux with a non-zero immediate
argument result in: `LLVM ERROR: Cannot select: intrinsic
%llvm.ppc.altivec.vctsxs`.
Attached are C and IR reproducers.
Broken by r372285 (git d8399d12cd8). This commit make similar changes to other
architectures, so I wonder if there are any other cases.
The attached patch fixes the issue. Let me know if you want me to work up
something more formal to submit for review.</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>