[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [PATCH 28/42] target/arm: Convert VMOV (imm) to decodetre
From: |
Richard Henderson |
Subject: |
Re: [Qemu-arm] [PATCH 28/42] target/arm: Convert VMOV (imm) to decodetree |
Date: |
Sat, 8 Jun 2019 13:55:48 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
On 6/6/19 12:45 PM, Peter Maydell wrote:
> + n = (a->imm4h << 28) & 0x80000000;
> + i = ((a->imm4h << 4) & 0x70) | a->imm4l;
> + if (i & 0x40) {
> + i |= 0x780;
> + } else {
> + i |= 0x800;
> + }
> + n |= i << 19;
Can we reuse vfp_expand_imm here? Given that you don't have pure code motion
from the old code (due to field extraction) it doesn't feel wrong to go ahead
and fix this wart now.
> +VMOV_imm_sp ---- 1110 1.11 imm4h:4 .... 1010 0000 imm4l:4 \
> + vd=%vd_sp
We should concatenate imm4h and imm4l here, so that trans_VMOV_imm_* only needs
to do "n = vfp_expand_imm(MO_32, a->imm);".
(We can't use !function to expand the whole float constant because the
decodetree fields are "int", and we'd need to store a "uint64_t" for dp. C.f.
the SVE trans_FDUP.)
r~
- Re: [Qemu-arm] [PATCH 41/42] target/arm: Convert float-to-integer VCVT insns to decodetree, (continued)
- [Qemu-arm] [PATCH 03/42] target/arm: Factor out VFP access checking code, Peter Maydell, 2019/06/06
- [Qemu-arm] [PATCH 18/42] target/arm: Convert VFP VMLA to decodetree, Peter Maydell, 2019/06/06
- [Qemu-arm] [PATCH 12/42] target/arm: Convert "double-precision" register moves to decodetree, Peter Maydell, 2019/06/06
- [Qemu-arm] [PATCH 29/42] target/arm: Convert VABS to decodetree, Peter Maydell, 2019/06/06
- [Qemu-arm] [PATCH 28/42] target/arm: Convert VMOV (imm) to decodetree, Peter Maydell, 2019/06/06
- Re: [Qemu-arm] [PATCH 28/42] target/arm: Convert VMOV (imm) to decodetree,
Richard Henderson <=
[Qemu-arm] [PATCH 15/42] target/arm: Convert VFP VLDR and VSTR to decodetree, Peter Maydell, 2019/06/06
[Qemu-arm] [PATCH 25/42] target/arm: Convert VSUB to decodetree, Peter Maydell, 2019/06/06
[Qemu-arm] [PATCH 32/42] target/arm: Convert VMOV (register) to decodetree, Peter Maydell, 2019/06/06
[Qemu-arm] [PATCH 33/42] target/arm: Convert VFP comparison insns to decodetree, Peter Maydell, 2019/06/06