aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Schmidt <colins@eecs.berkeley.edu>2018-11-01 09:13:10 -0700
committerColin Schmidt <colins@eecs.berkeley.edu>2018-11-01 09:13:10 -0700
commitf45b6dfdb761dc244ff6548e74adf4e27f4d5bd8 (patch)
tree370e9e1268d492732c7bb5d9a92a07630c0204e7
parent4cfdce39025d0b1946b7d04ed9229330aa1d8649 (diff)
downloadriscv-opcodes-f45b6dfdb761dc244ff6548e74adf4e27f4d5bd8.zip
riscv-opcodes-f45b6dfdb761dc244ff6548e74adf4e27f4d5bd8.tar.gz
riscv-opcodes-f45b6dfdb761dc244ff6548e74adf4e27f4d5bd8.tar.bz2
Add vfinsert and vfextract
-rw-r--r--opcodes-v2
-rwxr-xr-xparse-opcodes2
2 files changed, 3 insertions, 1 deletions
diff --git a/opcodes-v b/opcodes-v
index 340bfad..d7c9d80 100644
--- a/opcodes-v
+++ b/opcodes-v
@@ -148,6 +148,7 @@ vand m vd vs1 vs2 27..25=4 31..28=9 14=1 6..0=0x57
# group 31..28=10 includes instructions that write xd
# (and may also read xs1 and/or xs2).
vextract m rd vs1 rs2 27..25=0 31..28=10 14=1 6..0=0x57
+vfextract m rd vs1 rs2 27..25=1 31..28=10 14=1 6..0=0x57
vmfirst m rd vs1 27..25=7 31..28=10 14=1 6..0=0x57 24..20=0
vmpop m rd vs1 27..25=7 31..28=10 14=1 6..0=0x57 24..20=1
@@ -158,6 +159,7 @@ vcvt m vd vs1 rs2 27..25=1 31..28=11 14=1 6..0=0x57
vslide m vd vs1 rs2 27..25=2 31..28=11 14=1 6..0=0x57
vinsert m vd rs1 rs2 27..25=4 31..28=11 14=1 6..0=0x57
vrgather m vd vs1 vs2 27..25=5 31..28=11 14=1 6..0=0x57
+vfinsert m vd rs1 rs2 27..25=6 31..28=11 14=1 6..0=0x57
# group 31..28=12
vxor m vd vs1 vs2 27..25=0 31..28=12 14=1 6..0=0x57
diff --git a/parse-opcodes b/parse-opcodes
index 7618dc4..44e3480 100755
--- a/parse-opcodes
+++ b/parse-opcodes
@@ -955,7 +955,7 @@ def make_vector_adoc_table():
print_vec_header()
print_vec_insts('vadd', 'vsub', 'vsl', 'vsrl', 'vsra', 'vand', 'vor', 'vxor', 'vneg')
print_vec_insts('vseq', 'vsne', 'vslt', 'vsge', 'vsltu', 'vsgeu')
- print_vec_insts('vclip', 'vcvt', 'vmpop', 'vmfirst', 'vextract', 'vinsert', 'vmerge', 'vselect', 'vslide', 'vrgather')
+ print_vec_insts('vclip', 'vcvt', 'vmpop', 'vmfirst', 'vextract', 'vfextract', 'vinsert', 'vfinsert', 'vmerge', 'vselect', 'vslide', 'vrgather')
print_vec_insts('vdiv', 'vrem', 'vmul', 'vmulh', 'vmulhu', 'vmulhsu')
print_vec_insts('vpopc', 'vredsum', 'vredmax', 'vredmin')
print_vec_insts('vaddi', 'vsli', 'vsrli', 'vsrai', 'vclipi', 'vandi', 'vori', 'vxori')