diff options
author | Song Gao <gaosong@loongson.cn> | 2023-05-04 20:27:31 +0800 |
---|---|---|
committer | Song Gao <gaosong@loongson.cn> | 2023-05-06 11:19:45 +0800 |
commit | d8be64c1c501f4e504d00a79ed472d66acd6ce81 (patch) | |
tree | ae53ed1b4bbaa509c3af620665be9f429ac5e6a2 /target/loongarch/insns.decode | |
parent | 57b4f1ac18871f2f3323bf6fc88e9ae2a1a5d4ec (diff) | |
download | qemu-d8be64c1c501f4e504d00a79ed472d66acd6ce81.zip qemu-d8be64c1c501f4e504d00a79ed472d66acd6ce81.tar.gz qemu-d8be64c1c501f4e504d00a79ed472d66acd6ce81.tar.bz2 |
target/loongarch: Implement vaddi/vsubi
This patch includes:
- VADDI.{B/H/W/D}U;
- VSUBI.{B/H/W/D}U.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20230504122810.4094787-6-gaosong@loongson.cn>
Diffstat (limited to 'target/loongarch/insns.decode')
-rw-r--r-- | target/loongarch/insns.decode | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target/loongarch/insns.decode b/target/loongarch/insns.decode index d18db68..2a98c14 100644 --- a/target/loongarch/insns.decode +++ b/target/loongarch/insns.decode @@ -491,11 +491,13 @@ dbcl 0000 00000010 10101 ............... @i15 # &vvv vd vj vk +&vv_i vd vj imm # # LSX Formats # @vvv .... ........ ..... vk:5 vj:5 vd:5 &vvv +@vv_ui5 .... ........ ..... imm:5 vj:5 vd:5 &vv_i vadd_b 0111 00000000 10100 ..... ..... ..... @vvv vadd_h 0111 00000000 10101 ..... ..... ..... @vvv @@ -507,3 +509,12 @@ vsub_h 0111 00000000 11001 ..... ..... ..... @vvv vsub_w 0111 00000000 11010 ..... ..... ..... @vvv vsub_d 0111 00000000 11011 ..... ..... ..... @vvv vsub_q 0111 00010010 11011 ..... ..... ..... @vvv + +vaddi_bu 0111 00101000 10100 ..... ..... ..... @vv_ui5 +vaddi_hu 0111 00101000 10101 ..... ..... ..... @vv_ui5 +vaddi_wu 0111 00101000 10110 ..... ..... ..... @vv_ui5 +vaddi_du 0111 00101000 10111 ..... ..... ..... @vv_ui5 +vsubi_bu 0111 00101000 11000 ..... ..... ..... @vv_ui5 +vsubi_hu 0111 00101000 11001 ..... ..... ..... @vv_ui5 +vsubi_wu 0111 00101000 11010 ..... ..... ..... @vv_ui5 +vsubi_du 0111 00101000 11011 ..... ..... ..... @vv_ui5 |