[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 14/23] tcg/ppc: Support vector dup2
From: |
Richard Henderson |
Subject: |
[PULL 14/23] tcg/ppc: Support vector dup2 |
Date: |
Sun, 13 Oct 2019 15:25:35 -0700 |
This is only used for 32-bit hosts.
Signed-off-by: Richard Henderson <address@hidden>
Signed-off-by: Aleksandar Markovic <address@hidden>
---
tcg/ppc/tcg-target.inc.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tcg/ppc/tcg-target.inc.c b/tcg/ppc/tcg-target.inc.c
index d4b3354626..8a508136ce 100644
--- a/tcg/ppc/tcg-target.inc.c
+++ b/tcg/ppc/tcg-target.inc.c
@@ -3102,6 +3102,14 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc,
}
break;
+ case INDEX_op_dup2_vec:
+ assert(TCG_TARGET_REG_BITS == 32);
+ /* With inputs a1 = xLxx, a2 = xHxx */
+ tcg_out32(s, VMRGHW | VRT(a0) | VRA(a2) | VRB(a1)); /* a0 = xxHL */
+ tcg_out_vsldoi(s, TCG_VEC_TMP1, a0, a0, 8); /* tmp = HLxx */
+ tcg_out_vsldoi(s, a0, a0, TCG_VEC_TMP1, 8); /* a0 = HLHL */
+ return;
+
case INDEX_op_ppc_mrgh_vec:
insn = mrgh_op[vece];
break;
@@ -3480,6 +3488,7 @@ static const TCGTargetOpDef *tcg_target_op_def(TCGOpcode
op)
case INDEX_op_ppc_mulou_vec:
case INDEX_op_ppc_pkum_vec:
case INDEX_op_ppc_rotl_vec:
+ case INDEX_op_dup2_vec:
return &v_v_v;
case INDEX_op_not_vec:
case INDEX_op_dup_vec:
--
2.17.1
- [PULL 03/23] tcg/ppc: Introduce macros VRT(), VRA(), VRB(), VRC(), (continued)
- [PULL 03/23] tcg/ppc: Introduce macros VRT(), VRA(), VRB(), VRC(), Richard Henderson, 2019/10/13
- [PULL 04/23] tcg/ppc: Create TCGPowerISA and have_isa, Richard Henderson, 2019/10/13
- [PULL 05/23] tcg/ppc: Replace HAVE_ISA_2_06, Richard Henderson, 2019/10/13
- [PULL 06/23] tcg/ppc: Replace HAVE_ISEL macro with a variable, Richard Henderson, 2019/10/13
- [PULL 07/23] tcg/ppc: Enable tcg backend vector compilation, Richard Henderson, 2019/10/13
- [PULL 09/23] tcg/ppc: Add support for vector maximum/minimum, Richard Henderson, 2019/10/13
- [PULL 10/23] tcg/ppc: Add support for vector add/subtract, Richard Henderson, 2019/10/13
- [PULL 08/23] tcg/ppc: Add support for load/store/logic/comparison, Richard Henderson, 2019/10/13
- [PULL 12/23] tcg/ppc: Support vector shift by immediate, Richard Henderson, 2019/10/13
- [PULL 11/23] tcg/ppc: Add support for vector saturated add/subtract, Richard Henderson, 2019/10/13
- [PULL 14/23] tcg/ppc: Support vector dup2,
Richard Henderson <=
- [PULL 13/23] tcg/ppc: Support vector multiply, Richard Henderson, 2019/10/13
- [PULL 15/23] tcg/ppc: Enable Altivec detection, Richard Henderson, 2019/10/13
- [PULL 20/23] tcg/ppc: Update vector support for v3.00 Altivec, Richard Henderson, 2019/10/13
- [PULL 16/23] tcg/ppc: Update vector support for VSX, Richard Henderson, 2019/10/13
- [PULL 17/23] tcg/ppc: Update vector support for v2.07 Altivec, Richard Henderson, 2019/10/13
- [PULL 18/23] tcg/ppc: Update vector support for v2.07 VSX, Richard Henderson, 2019/10/13
- [PULL 19/23] tcg/ppc: Update vector support for v2.07 FP, Richard Henderson, 2019/10/13
- [PULL 21/23] tcg/ppc: Update vector support for v3.00 load/store, Richard Henderson, 2019/10/13
- [PULL 22/23] tcg/ppc: Update vector support for v3.00 dup/dupi, Richard Henderson, 2019/10/13
- [PULL 23/23] cpus: kick all vCPUs when running thread=single, Richard Henderson, 2019/10/13