[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 26/33] target/ppc: added the instructions PLXVP and PSTXVP
From: |
matheus . ferst |
Subject: |
[PATCH 26/33] target/ppc: added the instructions PLXVP and PSTXVP |
Date: |
Thu, 21 Oct 2021 16:45:40 -0300 |
From: "Lucas Mateus Castro (alqotel)" <lucas.castro@eldorado.org.br>
Implemented the instructions plxvp and pstxvp using decodetree
Signed-off-by: Lucas Mateus Castro (alqotel) <lucas.castro@eldorado.org.br>
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
---
target/ppc/insn64.decode | 9 +++++++++
target/ppc/translate/vsx-impl.c.inc | 2 ++
2 files changed, 11 insertions(+)
diff --git a/target/ppc/insn64.decode b/target/ppc/insn64.decode
index 093439b370..880ac3edc7 100644
--- a/target/ppc/insn64.decode
+++ b/target/ppc/insn64.decode
@@ -27,6 +27,11 @@
..... rt:6 ra:5 ................ \
&PLS_D si=%pls_si
+%rt_tsxp 21:1 22:4 !function=times_2
+@8LS_D_TSXP ...... .. . .. r:1 .. .................. \
+ ...... ..... ra:5 ................ \
+ &PLS_D si=%pls_si rt=%rt_tsxp
+
### Fixed-Point Load Instructions
PLBZ 000001 10 0--.-- .................. \
@@ -147,3 +152,7 @@ PLXV 000001 00 0--.-- .................. \
11001 ...... ..... ................ @8LS_D_TSX
PSTXV 000001 00 0--.-- .................. \
11011 ...... ..... ................ @8LS_D_TSX
+PLXVP 000001 00 0--.-- .................. \
+ 111010 ..... ..... ................ @8LS_D_TSXP
+PSTXVP 000001 00 0--.-- .................. \
+ 111110 ..... ..... ................ @8LS_D_TSXP
diff --git a/target/ppc/translate/vsx-impl.c.inc
b/target/ppc/translate/vsx-impl.c.inc
index 64c452ee24..4b40d2dbe0 100644
--- a/target/ppc/translate/vsx-impl.c.inc
+++ b/target/ppc/translate/vsx-impl.c.inc
@@ -2085,6 +2085,8 @@ TRANS(STXVPX, do_lstxv_X, true, true)
TRANS(LXVPX, do_lstxv_X, false, true)
TRANS64(PSTXV, do_lstxv_PLS_D, true, false)
TRANS64(PLXV, do_lstxv_PLS_D, false, false)
+TRANS64(PSTXVP, do_lstxv_PLS_D, true, true)
+TRANS64(PLXVP, do_lstxv_PLS_D, false, true)
#undef GEN_XX2FORM
#undef GEN_XX3FORM
--
2.25.1
- [PATCH 22/33] target/ppc: moved stxvx and lxvx from legacy to decodtree, (continued)
- [PATCH 22/33] target/ppc: moved stxvx and lxvx from legacy to decodtree, matheus . ferst, 2021/10/21
- [PATCH 23/33] target/ppc: added the instructions LXVP and STXVP, matheus . ferst, 2021/10/21
- [PATCH 24/33] target/ppc: added the instructions LXVPX and STXVPX, matheus . ferst, 2021/10/21
- [PATCH 25/33] target/ppc: added the instructions PLXV and PSTXV, matheus . ferst, 2021/10/21
- [PATCH 27/33] target/ppc: moved XXSPLTW to using decodetree, matheus . ferst, 2021/10/21
- [PATCH 26/33] target/ppc: added the instructions PLXVP and PSTXVP,
matheus . ferst <=
- [PATCH 28/33] target/ppc: moved XXSPLTIB to using decodetree, matheus . ferst, 2021/10/21
- [PATCH 29/33] target/ppc: implemented XXSPLTI32DX, matheus . ferst, 2021/10/21
- [PATCH 30/33] target/ppc: Implemented XXSPLTIW using decodetree, matheus . ferst, 2021/10/21
- [PATCH 31/33] target/ppc: implemented XXSPLTIDP instruction, matheus . ferst, 2021/10/21
- [PATCH 32/33] target/ppc: Implement xxblendvb/xxblendvh/xxblendvw/xxblendvd instructions, matheus . ferst, 2021/10/21