mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target/arm: Pass separate addend to {U, S}DOT helpers
For SVE, we potentially have a 4th argument coming from the movprfx instruction. Currently we do not optimize movprfx, so the problem is not visible. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210525010358.152808-50-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
77e786bb95
commit
bc2bd6974e
6 changed files with 109 additions and 76 deletions
|
@ -683,6 +683,17 @@ static void gen_gvec_op3_qc(DisasContext *s, bool is_q, int rd, int rn,
|
|||
tcg_temp_free_ptr(qc_ptr);
|
||||
}
|
||||
|
||||
/* Expand a 4-operand operation using an out-of-line helper. */
|
||||
static void gen_gvec_op4_ool(DisasContext *s, bool is_q, int rd, int rn,
|
||||
int rm, int ra, int data, gen_helper_gvec_4 *fn)
|
||||
{
|
||||
tcg_gen_gvec_4_ool(vec_full_reg_offset(s, rd),
|
||||
vec_full_reg_offset(s, rn),
|
||||
vec_full_reg_offset(s, rm),
|
||||
vec_full_reg_offset(s, ra),
|
||||
is_q ? 16 : 8, vec_full_reg_size(s), data, fn);
|
||||
}
|
||||
|
||||
/* Set ZF and NF based on a 64 bit result. This is alas fiddlier
|
||||
* than the 32 bit equivalent.
|
||||
*/
|
||||
|
@ -12183,7 +12194,7 @@ static void disas_simd_three_reg_same_extra(DisasContext *s, uint32_t insn)
|
|||
return;
|
||||
|
||||
case 0x2: /* SDOT / UDOT */
|
||||
gen_gvec_op3_ool(s, is_q, rd, rn, rm, 0,
|
||||
gen_gvec_op4_ool(s, is_q, rd, rn, rm, rd, 0,
|
||||
u ? gen_helper_gvec_udot_b : gen_helper_gvec_sdot_b);
|
||||
return;
|
||||
|
||||
|
@ -13442,7 +13453,7 @@ static void disas_simd_indexed(DisasContext *s, uint32_t insn)
|
|||
switch (16 * u + opcode) {
|
||||
case 0x0e: /* SDOT */
|
||||
case 0x1e: /* UDOT */
|
||||
gen_gvec_op3_ool(s, is_q, rd, rn, rm, index,
|
||||
gen_gvec_op4_ool(s, is_q, rd, rn, rm, rd, index,
|
||||
u ? gen_helper_gvec_udot_idx_b
|
||||
: gen_helper_gvec_sdot_idx_b);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue