<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 - [POWER] vec_bperm missing documented signatures"
href="https://bugs.llvm.org/show_bug.cgi?id=50932">50932</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[POWER] vec_bperm missing documented signatures
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>clang@evan.coeusgroup.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>According to the documentation for XL C/C++ 16.1.1
(<<a href="https://www.ibm.com/docs/en/SSXVZZ_16.1.1/com.ibm.compilers.linux.doc/compiler.pdf">https://www.ibm.com/docs/en/SSXVZZ_16.1.1/com.ibm.compilers.linux.doc/compiler.pdf</a>>),
vec_bperm should have two signatures. On POWER8:
vector unsigned char
vec_bperm(vector unsigned char a, vector unsigned char b);
And on POWER9 there should also be:
vector unsigned long
vec_bperm(vector unsigned long long a, vector unsigned char b);
Neither of these is present in clang; instead, there is a single signature (see
<<a href="https://github.com/llvm/llvm-project/blob/5d933c0b0c741767f2af8218d55581557903a254/clang/lib/Headers/altivec.h#L17356-L17363">https://github.com/llvm/llvm-project/blob/5d933c0b0c741767f2af8218d55581557903a254/clang/lib/Headers/altivec.h#L17356-L17363</a>>)
which doesn't match either of the documented signatures:
vector unsigned long long
vec_bperm(vector unsigned __int128 a, vector unsigned char b);</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>