[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/18] target/arm: Use dup_const() instead of bitfield_replicate(
From: |
Peter Maydell |
Subject: |
[PATCH 05/18] target/arm: Use dup_const() instead of bitfield_replicate() |
Date: |
Mon, 28 Jun 2021 14:58:22 +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>
---
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 97b4a41a0c7..02730397e3d 100644
--- a/target/arm/translate-a64.c
+++ b/target/arm/translate-a64.c
@@ -8221,7 +8221,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
- [PATCH 00/18] target/arm: Second slice of MVE implementation, Peter Maydell, 2021/06/28
- [PATCH 02/18] target/arm: Fix bugs in MVE VRMLALDAVH, VRMLSLDAVH, Peter Maydell, 2021/06/28
- [PATCH 01/18] target/arm: Fix MVE widening/narrowing VLDR/VSTR offset calculation, Peter Maydell, 2021/06/28
- [PATCH 03/18] target/arm: Make asimd_imm_const() public, Peter Maydell, 2021/06/28
- [PATCH 05/18] target/arm: Use dup_const() instead of bitfield_replicate(),
Peter Maydell <=
- [PATCH 06/18] target/arm: Implement MVE logical immediate insns, Peter Maydell, 2021/06/28
- [PATCH 04/18] target/arm: Use asimd_imm_const for A64 decode, Peter Maydell, 2021/06/28
- [PATCH 07/18] target/arm: Implement MVE vector shift left by immediate insns, Peter Maydell, 2021/06/28
- [PATCH 08/18] target/arm: Implement MVE vector shift right by immediate insns, Peter Maydell, 2021/06/28