Skip to content

Commit 7b21781

Browse files
rnaxMichael Tokarev
authored andcommitted
target/riscv: Fix the rvv reserved encoding of unmasked instructions
According to the v spec, the encodings of vcomoress.vm and vector mask-register logical instructions with vm=0 are reserved. Reviewed-by: Daniel Henrique Barboza <[email protected]> Signed-off-by: Max Chou <[email protected]> Message-ID: <[email protected]> Signed-off-by: Alistair Francis <[email protected]> Cc: [email protected] (cherry picked from commit 8539a12) Signed-off-by: Michael Tokarev <[email protected]>
1 parent 43a4f23 commit 7b21781

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

target/riscv/insn32.decode

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -703,14 +703,14 @@ vfredmax_vs 000111 . ..... ..... 001 ..... 1010111 @r_vm
703703
# Vector widening ordered and unordered float reduction sum
704704
vfwredusum_vs 110001 . ..... ..... 001 ..... 1010111 @r_vm
705705
vfwredosum_vs 110011 . ..... ..... 001 ..... 1010111 @r_vm
706-
vmand_mm 011001 - ..... ..... 010 ..... 1010111 @r
707-
vmnand_mm 011101 - ..... ..... 010 ..... 1010111 @r
708-
vmandn_mm 011000 - ..... ..... 010 ..... 1010111 @r
709-
vmxor_mm 011011 - ..... ..... 010 ..... 1010111 @r
710-
vmor_mm 011010 - ..... ..... 010 ..... 1010111 @r
711-
vmnor_mm 011110 - ..... ..... 010 ..... 1010111 @r
712-
vmorn_mm 011100 - ..... ..... 010 ..... 1010111 @r
713-
vmxnor_mm 011111 - ..... ..... 010 ..... 1010111 @r
706+
vmand_mm 011001 1 ..... ..... 010 ..... 1010111 @r
707+
vmnand_mm 011101 1 ..... ..... 010 ..... 1010111 @r
708+
vmandn_mm 011000 1 ..... ..... 010 ..... 1010111 @r
709+
vmxor_mm 011011 1 ..... ..... 010 ..... 1010111 @r
710+
vmor_mm 011010 1 ..... ..... 010 ..... 1010111 @r
711+
vmnor_mm 011110 1 ..... ..... 010 ..... 1010111 @r
712+
vmorn_mm 011100 1 ..... ..... 010 ..... 1010111 @r
713+
vmxnor_mm 011111 1 ..... ..... 010 ..... 1010111 @r
714714
vcpop_m 010000 . ..... 10000 010 ..... 1010111 @r2_vm
715715
vfirst_m 010000 . ..... 10001 010 ..... 1010111 @r2_vm
716716
vmsbf_m 010100 . ..... 00001 010 ..... 1010111 @r2_vm
@@ -732,7 +732,7 @@ vrgather_vv 001100 . ..... ..... 000 ..... 1010111 @r_vm
732732
vrgatherei16_vv 001110 . ..... ..... 000 ..... 1010111 @r_vm
733733
vrgather_vx 001100 . ..... ..... 100 ..... 1010111 @r_vm
734734
vrgather_vi 001100 . ..... ..... 011 ..... 1010111 @r_vm
735-
vcompress_vm 010111 - ..... ..... 010 ..... 1010111 @r
735+
vcompress_vm 010111 1 ..... ..... 010 ..... 1010111 @r
736736
vmv1r_v 100111 1 ..... 00000 011 ..... 1010111 @r2rd
737737
vmv2r_v 100111 1 ..... 00001 011 ..... 1010111 @r2rd
738738
vmv4r_v 100111 1 ..... 00011 011 ..... 1010111 @r2rd

0 commit comments

Comments
 (0)