<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 - [PowerPC][VSX] Missing builtins __builtin_pack_vector_int128 / __builtin_unpack_vector_int128 / vec_ld(int __a, const vector unsigned long *__b) / __builtin_crypto_vpmsumw / vxor(vector unsigned long, vector unsigned long)"
href="https://bugs.llvm.org/show_bug.cgi?id=34296">34296</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[PowerPC][VSX] Missing builtins __builtin_pack_vector_int128 / __builtin_unpack_vector_int128 / vec_ld(int __a, const vector unsigned long *__b) / __builtin_crypto_vpmsumw / vxor(vector unsigned long, vector unsigned long)
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>danielgb@au1.ibm.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>From bottom of page:
<a href="https://gcc.gnu.org/onlinedocs/gcc/PowerPC-Built-in-Functions.html">https://gcc.gnu.org/onlinedocs/gcc/PowerPC-Built-in-Functions.html</a>
and operations on vector unsigned long.
/home/danielgb/toolchain-clang/bin/clang -m64 -g -O2 -mcpu=power8
-mpower8-vector -Wall -maltivec -mvsx -c -o vec_crc32.o vec_crc32.c
vec_crc32.c:123:31: error: use of unknown builtin
'__builtin_pack_vector_int128' [-Wimplicit-function-declaration]
vcrc = (vector unsigned long)__builtin_pack_vector_int128(0UL, crc);
^
============
vec_ld(int __a, const vector unsigned long *__b) also missing:
vec_crc32.c:136:13: error: call to 'vec_ld' is ambiguous
vconst1 = vec_ld(offset, vcrc_short_const);
^~~~~~
crc32_constants.h:static const __vector unsigned long vcrc_short_const[16]
vec_crc32.c:143:37: error: use of unknown builtin '__builtin_crypto_vpmsumw'
[-Wimplicit-function-declaration]
vdata0 = (__vector unsigned long) __builtin_crypto_vpmsumw
^
$ /home/danielgb/toolchain-clang/bin/clang --version
clang version 6.0.0 (llvm-clang.git ce7e9f1524037ca01fa3c5d395dcde87beb25dba)
llvm.git aa58e7feb3cddfde2f2794b5092c8bdff4bc9977)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/danielgb/toolchain-clang/bin
code:
<a href="https://github.com/racardoso/crc32-vpmsum/tree/power_intrinsics">https://github.com/racardoso/crc32-vpmsum/tree/power_intrinsics</a>
make CC=/home/danielgb/toolchain-clang/bin/clang vec_crc32_test
vec_crc32_bench</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>