mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
target/arm: Implement MVE VCADD
Implement the MVE VCADD insn. Note that here the size bit is the opposite sense to the other 2-operand fp insns. We don't check for the sz == 1 && Qd == Qm UNPREDICTABLE case, because that would mean we can't use the DO_2OP_FP macro in translate-mve.c. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
82af0153d3
commit
104afc68cf
4 changed files with 57 additions and 1 deletions
|
@ -29,6 +29,8 @@
|
|||
# 2 operand fp insns have size in bit 20: 1 for 16 bit, 0 for 32 bit,
|
||||
# like Neon FP insns.
|
||||
%2op_fp_size 20:1 !function=neon_3same_fp_size
|
||||
# VCADD is an exception, where bit 20 is 0 for 16 bit and 1 for 32 bit
|
||||
%2op_fp_size_rev 20:1 !function=plus_1
|
||||
|
||||
# 1imm format immediate
|
||||
%imm_28_16_0 28:1 16:3 0:4
|
||||
|
@ -125,6 +127,9 @@
|
|||
@2op_fp .... .... .... .... .... .... .... .... &2op \
|
||||
qd=%qd qn=%qn qm=%qm size=%2op_fp_size
|
||||
|
||||
@2op_fp_size_rev .... .... .... .... .... .... .... .... &2op \
|
||||
qd=%qd qn=%qn qm=%qm size=%2op_fp_size_rev
|
||||
|
||||
# Vector loads and stores
|
||||
|
||||
# Widening loads and narrowing stores:
|
||||
|
@ -631,3 +636,6 @@ VABD_fp 1111 1111 0 . 1 . ... 0 ... 0 1101 . 1 . 0 ... 0 @2op_fp
|
|||
|
||||
VMAXNM 1111 1111 0 . 0 . ... 0 ... 0 1111 . 1 . 1 ... 0 @2op_fp
|
||||
VMINNM 1111 1111 0 . 1 . ... 0 ... 0 1111 . 1 . 1 ... 0 @2op_fp
|
||||
|
||||
VCADD90_fp 1111 1100 1 . 0 . ... 0 ... 0 1000 . 1 . 0 ... 0 @2op_fp_size_rev
|
||||
VCADD270_fp 1111 1101 1 . 0 . ... 0 ... 0 1000 . 1 . 0 ... 0 @2op_fp_size_rev
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue