qemu/tests/tcg/ppc64le
Matheus Ferst 63c2b746be tests/tcg/ppc64le: emit bcdsub with .long when needed
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] 59eb767e11
[3] c933c2eb33

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Message-Id: <20220304165417.1981159-5-matheus.ferst@eldorado.org.br>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
2022-03-05 07:16:46 +01:00
..
bcdsub.c tests/tcg/ppc64le: emit bcdsub with .long when needed 2022-03-05 07:16:46 +01:00
byte_reverse.c tests/tcg/ppc64le: tests for brh/brw/brd 2021-05-18 09:36:21 +01:00
float_convs.ref test/tcg/ppc64le: Add float reference files 2022-01-18 16:44:16 +00:00
float_madds.ref test/tcg/ppc64le: Add float reference files 2022-01-18 16:44:16 +00:00
Makefile.target tests/tcg: add vectorised sha512 versions 2022-02-28 16:42:35 +00:00
mtfsf.c tests/tcg/ppc64le: use inline asm instead of __builtin_mtfsf 2022-03-05 07:16:46 +01:00
non_signalling_xscv.c target/ppc: do not silence snan in xscvspdpn 2022-01-04 07:55:34 +01:00
signal_save_restore_xer.c linux-user/ppc: Fix XER access in save/restore_user_regs 2021-10-21 11:42:47 +11:00