[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 11/24] target/arm: Use dup_const() instead of bitfield_replicate()
From: |
Peter Maydell |
Subject: |
[PULL 11/24] target/arm: Use dup_const() instead of bitfield_replicate() |
Date: |
Fri, 2 Jul 2021 13:59:41 +0100 |
Use dup_const() instead of bitfield_replicate() in
disas_simd_mod_imm().
(We can't replace the other use of bitfield_replicate() in this file,
in logic_imm_decode_wmask(), because that location needs to handle 2
and 4 bit elements, which dup_const() cannot.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210628135835.6690-6-peter.maydell@linaro.org
---
target/arm/translate-a64.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c
index 66781f71cb2..e81cc20d04a 100644
--- a/target/arm/translate-a64.c
+++ b/target/arm/translate-a64.c
@@ -8212,7 +8212,7 @@ static void disas_simd_mod_imm(DisasContext *s, uint32_t
insn)
/* FMOV (vector, immediate) - half-precision */
imm = vfp_expand_imm(MO_16, abcdefgh);
/* now duplicate across the lanes */
- imm = bitfield_replicate(imm, 16);
+ imm = dup_const(MO_16, imm);
} else {
imm = asimd_imm_const(abcdefgh, cmode, is_neg);
}
--
2.20.1
- [PULL 05/24] target/arm: Check NaN mode before silencing NaN, (continued)
- [PULL 05/24] target/arm: Check NaN mode before silencing NaN, Peter Maydell, 2021/07/02
- [PULL 02/24] docs/system/arm: Add quanta-gbs-bmc reference, Peter Maydell, 2021/07/02
- [PULL 04/24] tests: Boot and halt a Linux guest on the Raspberry Pi 2 machine, Peter Maydell, 2021/07/02
- [PULL 07/24] target/arm: Fix MVE widening/narrowing VLDR/VSTR offset calculation, Peter Maydell, 2021/07/02
- [PULL 08/24] target/arm: Fix bugs in MVE VRMLALDAVH, VRMLSLDAVH, Peter Maydell, 2021/07/02
- [PULL 12/24] target/arm: Implement MVE logical immediate insns, Peter Maydell, 2021/07/02
- [PULL 13/24] target/arm: Implement MVE vector shift left by immediate insns, Peter Maydell, 2021/07/02
- [PULL 20/24] target/arm: Implement MVE VADDLV, Peter Maydell, 2021/07/02
- [PULL 21/24] target/arm: Implement MVE long shifts by immediate, Peter Maydell, 2021/07/02
- [PULL 18/24] target/arm: Implement MVE saturating narrowing shifts, Peter Maydell, 2021/07/02
- [PULL 11/24] target/arm: Use dup_const() instead of bitfield_replicate(),
Peter Maydell <=
- [PULL 17/24] target/arm: Implement MVE VSHRN, VRSHRN, Peter Maydell, 2021/07/02
- [PULL 06/24] hw/gpio/gpio_pwr: use shutdown function for reboot, Peter Maydell, 2021/07/02
- [PULL 09/24] target/arm: Make asimd_imm_const() public, Peter Maydell, 2021/07/02
- [PULL 15/24] target/arm: Implement MVE VSHLL, Peter Maydell, 2021/07/02
- [PULL 24/24] target/arm: Implement MVE shifts by register, Peter Maydell, 2021/07/02
- [PULL 23/24] target/arm: Implement MVE shifts by immediate, Peter Maydell, 2021/07/02
- [PULL 16/24] target/arm: Implement MVE VSRI, VSLI, Peter Maydell, 2021/07/02
- [PULL 10/24] target/arm: Use asimd_imm_const for A64 decode, Peter Maydell, 2021/07/02
- [PULL 19/24] target/arm: Implement MVE VSHLC, Peter Maydell, 2021/07/02
- [PULL 22/24] target/arm: Implement MVE long shifts by register, Peter Maydell, 2021/07/02