[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 03/23] tcg/ppc: Introduce macros VRT(), VRA(), VRB(), VRC()
From: |
Richard Henderson |
Subject: |
[PULL 03/23] tcg/ppc: Introduce macros VRT(), VRA(), VRB(), VRC() |
Date: |
Sun, 13 Oct 2019 15:25:24 -0700 |
Introduce macros VRT(), VRA(), VRB(), VRC() used for encoding
elements of Altivec instructions.
Signed-off-by: Richard Henderson <address@hidden>
Signed-off-by: Aleksandar Markovic <address@hidden>
---
tcg/ppc/tcg-target.inc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tcg/ppc/tcg-target.inc.c b/tcg/ppc/tcg-target.inc.c
index 8dc5455600..4aad5d2b36 100644
--- a/tcg/ppc/tcg-target.inc.c
+++ b/tcg/ppc/tcg-target.inc.c
@@ -473,6 +473,11 @@ static int tcg_target_const_match(tcg_target_long val,
TCGType type,
#define MB64(b) ((b)<<5)
#define FXM(b) (1 << (19 - (b)))
+#define VRT(r) (((r) & 31) << 21)
+#define VRA(r) (((r) & 31) << 16)
+#define VRB(r) (((r) & 31) << 11)
+#define VRC(r) (((r) & 31) << 6)
+
#define LK 1
#define TAB(t, a, b) (RT(t) | RA(a) | RB(b))
--
2.17.1
- [PULL 00/23] tcg patch queue, Richard Henderson, 2019/10/13
- [PULL 01/23] tcg/ppc: Introduce Altivec registers, Richard Henderson, 2019/10/13
- [PULL 02/23] tcg/ppc: Introduce macro VX4(), Richard Henderson, 2019/10/13
- [PULL 03/23] tcg/ppc: Introduce macros VRT(), VRA(), VRB(), VRC(),
Richard Henderson <=
- [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, 2019/10/13