target-arm: implement vsli.64, vsri.64
PATCH v2 1/1 target-arm: implement vsli.64, vsri.64
Signed-off-by Christophe Lyon <[email protected]>
---
Submitted as a standalone patch as suggested by Peter, along with his corrections.
target-arm/translate.c | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-)
target-arm/translate.c +13 -1
@@ -4688,7 +4688,19 @@ static int disas_neon_data_insn(CPUState * env, DisasContext *s, uint32_t insn)tcg_gen_add_i64 (cpu_V0, cpu_V0, cpu_V1); }else if (op ==4 || (op ==5 && u)) {/* Insert */ -cpu_abort (env,"VS[LR]I.64 not implemented" ); +neon_load_reg64 (cpu_V1, rd + pass); +uint64_t mask; +if (shift <-63 || shift >63 ) { + mask =0 ; + }else { +if (op ==4 ) { + mask =0xffffffffffffffffull >> -shift; + }else { + mask =0xffffffffffffffffull << shift; + } + } +tcg_gen_andi_i64 (cpu_V1, cpu_V1, ~mask); +tcg_gen_or_i64 (cpu_V0, cpu_V0, cpu_V1); }neon_store_reg64 (cpu_V0, rd + pass); }else {/* size < 3 */
Signature · 1 line
1.7.2.3
Quoted 4 lines · Christophe Lyon
Signed-off-by Christophe Lyon <[email protected]>---
Submitted as a standalone patch as suggested by Peter, along with his corrections.
Reviewed-by Peter Maydell <[email protected]>
-- PMM
Aurelien Jarno
AppliedQuoted 8 lines · Peter Maydell
Quoted 4 lines · Christophe Lyon
Signed-off-by Christophe Lyon <[email protected]>---
Submitted as a standalone patch as suggested by Peter, along with his corrections.Reviewed-by Peter Maydell <[email protected]>
Thanks, applied.
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net