[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 45/82] target/arm: Implement SVE2 gather load insns
From: |
Richard Henderson |
Subject: |
[PATCH v6 45/82] target/arm: Implement SVE2 gather load insns |
Date: |
Fri, 30 Apr 2021 13:25:33 -0700 |
From: Stephen Long <steplong@quicinc.com>
Add decoding logic for SVE2 64-bit/32-bit gather non-temporal
load insns.
64-bit
* LDNT1SB
* LDNT1B (vector plus scalar)
* LDNT1SH
* LDNT1H (vector plus scalar)
* LDNT1SW
* LDNT1W (vector plus scalar)
* LDNT1D (vector plus scalar)
32-bit
* LDNT1SB
* LDNT1B (vector plus scalar)
* LDNT1SH
* LDNT1H (vector plus scalar)
* LDNT1W (vector plus scalar)
Signed-off-by: Stephen Long <steplong@quicinc.com>
Message-Id: <20200422152343.12493-1-steplong@quicinc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/sve.decode | 11 +++++++++++
target/arm/translate-sve.c | 8 ++++++++
2 files changed, 19 insertions(+)
diff --git a/target/arm/sve.decode b/target/arm/sve.decode
index 5cfe6df0d2..c3958bed6a 100644
--- a/target/arm/sve.decode
+++ b/target/arm/sve.decode
@@ -1389,6 +1389,17 @@ UMLSLT_zzzw 01000100 .. 0 ..... 010 111 ..... .....
@rda_rn_rm
CMLA_zzzz 01000100 esz:2 0 rm:5 0010 rot:2 rn:5 rd:5 ra=%reg_movprfx
SQRDCMLAH_zzzz 01000100 esz:2 0 rm:5 0011 rot:2 rn:5 rd:5 ra=%reg_movprfx
+### SVE2 Memory Gather Load Group
+
+# SVE2 64-bit gather non-temporal load
+# (scalar plus unpacked 32-bit unscaled offsets)
+LDNT1_zprz 1100010 msz:2 00 rm:5 1 u:1 0 pg:3 rn:5 rd:5 \
+ &rprr_gather_load xs=0 esz=3 scale=0 ff=0
+
+# SVE2 32-bit gather non-temporal load (scalar plus 32-bit unscaled offsets)
+LDNT1_zprz 1000010 msz:2 00 rm:5 10 u:1 pg:3 rn:5 rd:5 \
+ &rprr_gather_load xs=0 esz=2 scale=0 ff=0
+
### SVE2 Memory Store Group
# SVE2 64-bit scatter non-temporal store (vector plus scalar)
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c
index 0356b6a124..a74c15b23f 100644
--- a/target/arm/translate-sve.c
+++ b/target/arm/translate-sve.c
@@ -6015,6 +6015,14 @@ static bool trans_LD1_zpiz(DisasContext *s, arg_LD1_zpiz
*a)
return true;
}
+static bool trans_LDNT1_zprz(DisasContext *s, arg_LD1_zprz *a)
+{
+ if (!dc_isar_feature(aa64_sve2, s)) {
+ return false;
+ }
+ return trans_LD1_zprz(s, a);
+}
+
/* Indexed by [mte][be][xs][msz]. */
static gen_helper_gvec_mem_scatter * const scatter_store_fn32[2][2][2][3] = {
{ /* MTE Inactive */
--
2.25.1
- [PATCH v6 43/82] target/arm: Implement SVE2 XAR, (continued)
- [PATCH v6 43/82] target/arm: Implement SVE2 XAR, Richard Henderson, 2021/04/30
- [PATCH v6 48/82] target/arm: Pass separate addend to {U, S}DOT helpers, Richard Henderson, 2021/04/30
- [PATCH v6 42/82] target/arm: Implement SVE2 HISTCNT, HISTSEG, Richard Henderson, 2021/04/30
- [PATCH v6 47/82] target/arm: Implement SVE2 SPLICE, EXT, Richard Henderson, 2021/04/30
- [PATCH v6 55/82] target/arm: Implement SVE2 saturating multiply-add (indexed), Richard Henderson, 2021/04/30
- [PATCH v6 59/82] target/arm: Implement SVE mixed sign dot product (indexed), Richard Henderson, 2021/04/30
- [PATCH v6 60/82] target/arm: Implement SVE mixed sign dot product, Richard Henderson, 2021/04/30
- [PATCH v6 50/82] target/arm: Split out formats for 2 vectors + 1 index, Richard Henderson, 2021/04/30
- [PATCH v6 57/82] target/arm: Implement SVE2 signed saturating doubling multiply high, Richard Henderson, 2021/04/30
- [PATCH v6 54/82] target/arm: Implement SVE2 saturating multiply-add high (indexed), Richard Henderson, 2021/04/30
- [PATCH v6 45/82] target/arm: Implement SVE2 gather load insns,
Richard Henderson <=
- [PATCH v6 51/82] target/arm: Split out formats for 3 vectors + 1 index, Richard Henderson, 2021/04/30
- [PATCH v6 53/82] target/arm: Implement SVE2 integer multiply-add (indexed), Richard Henderson, 2021/04/30
- [PATCH v6 52/82] target/arm: Implement SVE2 integer multiply (indexed), Richard Henderson, 2021/04/30
- [PATCH v6 58/82] target/arm: Implement SVE2 saturating multiply high (indexed), Richard Henderson, 2021/04/30
- [PATCH v6 72/82] target/arm: Implement SVE2 bitwise shift immediate, Richard Henderson, 2021/04/30
- [PATCH v6 44/82] target/arm: Implement SVE2 scatter store insns, Richard Henderson, 2021/04/30
- [PATCH v6 61/82] target/arm: Implement SVE2 crypto unary operations, Richard Henderson, 2021/04/30
- [PATCH v6 76/82] target/arm: Remove unused fpst from VDOT_scalar, Richard Henderson, 2021/04/30
- [PATCH v6 64/82] target/arm: Implement SVE2 TBL, TBX, Richard Henderson, 2021/04/30
- [PATCH v6 63/82] target/arm: Implement SVE2 crypto constructive binary operations, Richard Henderson, 2021/04/30