63c2b746be
Based on GCC docs[1], we use the '-mpower8-vector' flag at config-time to detect the toolchain support to the bcdsub instruction. LLVM/Clang supports this flag since version 3.6[2], but the instruction and related builtins were only added in LLVM 14[3]. In the absence of other means to detect this support at config-time, we resort to __has_builtin to identify the presence of __builtin_bcdsub at compile-time. If the builtin is not available, the instruction is emitted with a ".long". [1] https://gcc.gnu.org/onlinedocs/gcc-8.3.0/gcc/PowerPC-AltiVec_002fVSX-Built-in-Functions.html [2] |
||
---|---|---|
.. | ||
bcdsub.c | ||
byte_reverse.c | ||
float_convs.ref | ||
float_madds.ref | ||
Makefile.target | ||
mtfsf.c | ||
non_signalling_xscv.c | ||
signal_save_restore_xer.c |