aboutsummaryrefslogtreecommitdiff
path: root/tcg/ppc/tcg-target.opc.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2019-06-23 19:04:35 +0200
committerRichard Henderson <richard.henderson@linaro.org>2019-10-14 07:09:44 -0700
commit4b06c216826b7e4763afbecde12d3c79aecc6ce7 (patch)
treef44941362127ce9519ccdffc58f6660eac1d45d4 /tcg/ppc/tcg-target.opc.h
parent63922f467a200dabc43be3eaf7edbec800365bb5 (diff)
tcg/ppc: Enable tcg backend vector compilation
Introduce all of the flags required to enable tcg backend vector support, and a runtime flag to indicate the host supports Altivec instructions. For now, do not actually set have_isa_altivec to true, because we have not yet added all of the code to actually generate all of the required insns. However, we must define these flags in order to disable ifndefs that create stub versions of the functions added here. The change to tcg_out_movi works around a buglet in tcg.c wherein if we do not define tcg_out_dupi_vec we get a declared but not defined Werror, but if we only declare it we get a defined but not used Werror. We need to this change to tcg_out_movi eventually anyway, so it's no biggie. Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Diffstat (limited to 'tcg/ppc/tcg-target.opc.h')
-rw-r--r--tcg/ppc/tcg-target.opc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tcg/ppc/tcg-target.opc.h b/tcg/ppc/tcg-target.opc.h
new file mode 100644
index 0000000000..fa680dd6a0
--- /dev/null
+++ b/tcg/ppc/tcg-target.opc.h
@@ -0,0 +1,5 @@
+/*
+ * Target-specific opcodes for host vector expansion. These will be
+ * emitted by tcg_expand_vec_op. For those familiar with GCC internals,
+ * consider these to be UNSPEC with names.
+ */