mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target/arm: Create gen_gvec_{qrdmla,qrdmls}
Provide a functional interface for the vector expansion. This fits better with the existing set of helpers that we provide for other operations. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20200513163245.17915-13-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
fe6fb4beb2
commit
146aa66ce5
3 changed files with 34 additions and 59 deletions
|
@ -587,18 +587,6 @@ static void gen_gvec_op3_ool(DisasContext *s, bool is_q, int rd,
|
|||
is_q ? 16 : 8, vec_full_reg_size(s), data, fn);
|
||||
}
|
||||
|
||||
/* Expand a 3-operand + env pointer operation using
|
||||
* an out-of-line helper.
|
||||
*/
|
||||
static void gen_gvec_op3_env(DisasContext *s, bool is_q, int rd,
|
||||
int rn, int rm, gen_helper_gvec_3_ptr *fn)
|
||||
{
|
||||
tcg_gen_gvec_3_ptr(vec_full_reg_offset(s, rd),
|
||||
vec_full_reg_offset(s, rn),
|
||||
vec_full_reg_offset(s, rm), cpu_env,
|
||||
is_q ? 16 : 8, vec_full_reg_size(s), 0, fn);
|
||||
}
|
||||
|
||||
/* Expand a 3-operand + fpstatus pointer + simd data value operation using
|
||||
* an out-of-line helper.
|
||||
*/
|
||||
|
@ -11693,29 +11681,11 @@ static void disas_simd_three_reg_same_extra(DisasContext *s, uint32_t insn)
|
|||
|
||||
switch (opcode) {
|
||||
case 0x0: /* SQRDMLAH (vector) */
|
||||
switch (size) {
|
||||
case 1:
|
||||
gen_gvec_op3_env(s, is_q, rd, rn, rm, gen_helper_gvec_qrdmlah_s16);
|
||||
break;
|
||||
case 2:
|
||||
gen_gvec_op3_env(s, is_q, rd, rn, rm, gen_helper_gvec_qrdmlah_s32);
|
||||
break;
|
||||
default:
|
||||
g_assert_not_reached();
|
||||
}
|
||||
gen_gvec_fn3(s, is_q, rd, rn, rm, gen_gvec_sqrdmlah_qc, size);
|
||||
return;
|
||||
|
||||
case 0x1: /* SQRDMLSH (vector) */
|
||||
switch (size) {
|
||||
case 1:
|
||||
gen_gvec_op3_env(s, is_q, rd, rn, rm, gen_helper_gvec_qrdmlsh_s16);
|
||||
break;
|
||||
case 2:
|
||||
gen_gvec_op3_env(s, is_q, rd, rn, rm, gen_helper_gvec_qrdmlsh_s32);
|
||||
break;
|
||||
default:
|
||||
g_assert_not_reached();
|
||||
}
|
||||
gen_gvec_fn3(s, is_q, rd, rn, rm, gen_gvec_sqrdmlsh_qc, size);
|
||||
return;
|
||||
|
||||
case 0x2: /* SDOT / UDOT */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue