mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
target/arm: Convert Neon VQSHL, VRSHL, VQRSHL 3-reg-same insns to decodetree
Convert the VQSHL, VRSHL and VQRSHL insns in the 3-reg-same group to decodetree. We have already implemented the size==0b11 case of these insns; this commit handles the remaining sizes. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20200512163904.10918-8-peter.maydell@linaro.org
This commit is contained in:
parent
8e44d03f4b
commit
6812dfdc6b
3 changed files with 70 additions and 25 deletions
|
@ -5439,6 +5439,9 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn)
|
|||
case NEON_3R_VHSUB:
|
||||
case NEON_3R_VABD:
|
||||
case NEON_3R_VABA:
|
||||
case NEON_3R_VQSHL:
|
||||
case NEON_3R_VRSHL:
|
||||
case NEON_3R_VQRSHL:
|
||||
/* Already handled by decodetree */
|
||||
return 1;
|
||||
}
|
||||
|
@ -5449,17 +5452,6 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn)
|
|||
}
|
||||
pairwise = 0;
|
||||
switch (op) {
|
||||
case NEON_3R_VQSHL:
|
||||
case NEON_3R_VRSHL:
|
||||
case NEON_3R_VQRSHL:
|
||||
{
|
||||
int rtmp;
|
||||
/* Shift instruction operands are reversed. */
|
||||
rtmp = rn;
|
||||
rn = rm;
|
||||
rm = rtmp;
|
||||
}
|
||||
break;
|
||||
case NEON_3R_VPADD_VQRDMLAH:
|
||||
case NEON_3R_VPMAX:
|
||||
case NEON_3R_VPMIN:
|
||||
|
@ -5519,14 +5511,6 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn)
|
|||
tmp2 = neon_load_reg(rm, pass);
|
||||
}
|
||||
switch (op) {
|
||||
case NEON_3R_VQSHL:
|
||||
GEN_NEON_INTEGER_OP_ENV(qshl);
|
||||
break;
|
||||
case NEON_3R_VRSHL:
|
||||
GEN_NEON_INTEGER_OP(rshl);
|
||||
break;
|
||||
case NEON_3R_VQRSHL:
|
||||
GEN_NEON_INTEGER_OP_ENV(qrshl);
|
||||
break;
|
||||
case NEON_3R_VPMAX:
|
||||
GEN_NEON_INTEGER_OP(pmax);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue