[llvm-bugs] [Bug 34296] 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)
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 22 22:45:44 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34296
Bug ID: 34296
Summary: [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)
Product: clang
Version: trunk
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: danielgb at au1.ibm.com
CC: llvm-bugs at lists.llvm.org
>From bottom of page:
https://gcc.gnu.org/onlinedocs/gcc/PowerPC-Built-in-Functions.html
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:
https://github.com/racardoso/crc32-vpmsum/tree/power_intrinsics
make CC=/home/danielgb/toolchain-clang/bin/clang vec_crc32_test
vec_crc32_bench
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170823/b3701a0b/attachment.html>
More information about the llvm-bugs
mailing list