mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
target/arm: Convert multiply and multiply accumulate
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20190904193059.26202-7-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
581c6ebd17
commit
bd92fe353b
3 changed files with 177 additions and 107 deletions
|
@ -22,6 +22,8 @@
|
|||
&s_rrr_shi !extern s rd rn rm shim shty
|
||||
&s_rrr_shr !extern s rn rd rm rs shty
|
||||
&s_rri_rot !extern s rn rd imm rot
|
||||
&s_rrrr !extern s rd rn rm ra
|
||||
&rrrr !extern rd rn rm ra
|
||||
|
||||
# Data-processing (register)
|
||||
|
||||
|
@ -109,3 +111,20 @@ SBC_rri 1111 0.0 1011 . .... 0 ... .... ........ @s_rri_rot
|
|||
SUB_rri 1111 0.0 1101 . .... 0 ... .... ........ @s_rri_rot
|
||||
}
|
||||
RSB_rri 1111 0.0 1110 . .... 0 ... .... ........ @s_rri_rot
|
||||
|
||||
# Multiply and multiply accumulate
|
||||
|
||||
@s0_rnadm .... .... .... rn:4 ra:4 rd:4 .... rm:4 &s_rrrr s=0
|
||||
@s0_rn0dm .... .... .... rn:4 .... rd:4 .... rm:4 &s_rrrr ra=0 s=0
|
||||
@rnadm .... .... .... rn:4 ra:4 rd:4 .... rm:4 &rrrr
|
||||
|
||||
{
|
||||
MUL 1111 1011 0000 .... 1111 .... 0000 .... @s0_rn0dm
|
||||
MLA 1111 1011 0000 .... .... .... 0000 .... @s0_rnadm
|
||||
}
|
||||
MLS 1111 1011 0000 .... .... .... 0001 .... @rnadm
|
||||
SMULL 1111 1011 1000 .... .... .... 0000 .... @s0_rnadm
|
||||
UMULL 1111 1011 1010 .... .... .... 0000 .... @s0_rnadm
|
||||
SMLAL 1111 1011 1100 .... .... .... 0000 .... @s0_rnadm
|
||||
UMLAL 1111 1011 1110 .... .... .... 0000 .... @s0_rnadm
|
||||
UMAAL 1111 1011 1110 .... .... .... 0110 .... @rnadm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue