mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
target/arm: Implement SVE2 TBL, TBX
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stephen Long <steplong@quicinc.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210525010358.152808-72-richard.henderson@linaro.org Message-Id: <20200428144352.9275-1-steplong@quicinc.com> [rth: rearrange the macros a little and rebase] Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
3358eb3fb7
commit
80a712a2be
4 changed files with 119 additions and 19 deletions
|
@ -2417,6 +2417,39 @@ static bool trans_TBL(DisasContext *s, arg_rrr_esz *a)
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool trans_TBL_sve2(DisasContext *s, arg_rrr_esz *a)
|
||||
{
|
||||
static gen_helper_gvec_4 * const fns[4] = {
|
||||
gen_helper_sve2_tbl_b, gen_helper_sve2_tbl_h,
|
||||
gen_helper_sve2_tbl_s, gen_helper_sve2_tbl_d
|
||||
};
|
||||
|
||||
if (!dc_isar_feature(aa64_sve2, s)) {
|
||||
return false;
|
||||
}
|
||||
if (sve_access_check(s)) {
|
||||
gen_gvec_ool_zzzz(s, fns[a->esz], a->rd, a->rn,
|
||||
(a->rn + 1) % 32, a->rm, 0);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool trans_TBX(DisasContext *s, arg_rrr_esz *a)
|
||||
{
|
||||
static gen_helper_gvec_3 * const fns[4] = {
|
||||
gen_helper_sve2_tbx_b, gen_helper_sve2_tbx_h,
|
||||
gen_helper_sve2_tbx_s, gen_helper_sve2_tbx_d
|
||||
};
|
||||
|
||||
if (!dc_isar_feature(aa64_sve2, s)) {
|
||||
return false;
|
||||
}
|
||||
if (sve_access_check(s)) {
|
||||
gen_gvec_ool_zzz(s, fns[a->esz], a->rd, a->rn, a->rm, 0);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool trans_UNPK(DisasContext *s, arg_UNPK *a)
|
||||
{
|
||||
static gen_helper_gvec_2 * const fns[4][2] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue