From c91a730914c6f7fd351dc80224912db5fae6b4e0 Mon Sep 17 00:00:00 2001 From: Chih-Min Chao Date: Mon, 22 Feb 2021 08:58:39 -0800 Subject: rvv: add vle1/vse1 instructions Signed-off-by: Chih-Min Chao --- opcodes-rvv | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opcodes-rvv b/opcodes-rvv index 82b7887..ac33067 100644 --- a/opcodes-rvv +++ b/opcodes-rvv @@ -17,6 +17,8 @@ vsetvl 31=1 30..25=0x0 rs2 rs1 14..12=0x7 rd 6..0=0x57 # # Vector Unit-Stride Instructions (including segment part) # https://github.com/riscv/riscv-v-spec/blob/master/v-spec.adoc#74-vector-unit-stride-instructions +vle1.v 31..28=0 27..26=0 25=1 24..20=0xb rs1 14..12=0x0 vd 6..0=0x07 +vse1.v 31..28=0 27..26=0 25=1 24..20=0xb rs1 14..12=0x0 vs3 6..0=0x27 vle8.v nf 28=0 27..26=0 vm 24..20=0 rs1 14..12=0x0 vd 6..0=0x07 vle16.v nf 28=0 27..26=0 vm 24..20=0 rs1 14..12=0x5 vd 6..0=0x07 vle32.v nf 28=0 27..26=0 vm 24..20=0 rs1 14..12=0x6 vd 6..0=0x07 -- cgit v1.1 From a985a6855443b095fc1463650f08848f70241433 Mon Sep 17 00:00:00 2001 From: Chih-Min Chao Date: Mon, 22 Feb 2021 08:59:09 -0800 Subject: rvv: rename reciprocal instructions Signed-off-by: Chih-Min Chao --- opcodes-rvv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opcodes-rvv b/opcodes-rvv index ac33067..f23f590 100644 --- a/opcodes-rvv +++ b/opcodes-rvv @@ -228,8 +228,8 @@ vfncvt.rtz.xu.f.w 31..26=0x12 vm vs2 19..15=0x16 14..12=0x1 vd 6..0=0x57 vfncvt.rtz.x.f.w 31..26=0x12 vm vs2 19..15=0x17 14..12=0x1 vd 6..0=0x57 vfsqrt.v 31..26=0x13 vm vs2 19..15=0x00 14..12=0x1 vd 6..0=0x57 -vfrsqrte7.v 31..26=0x13 vm vs2 19..15=0x04 14..12=0x1 vd 6..0=0x57 -vfrece7.v 31..26=0x13 vm vs2 19..15=0x05 14..12=0x1 vd 6..0=0x57 +vfrsqrt7.v 31..26=0x13 vm vs2 19..15=0x04 14..12=0x1 vd 6..0=0x57 +vfrec7.v 31..26=0x13 vm vs2 19..15=0x05 14..12=0x1 vd 6..0=0x57 vfclass.v 31..26=0x13 vm vs2 19..15=0x10 14..12=0x1 vd 6..0=0x57 vfwadd.vv 31..26=0x30 vm vs2 vs1 14..12=0x1 vd 6..0=0x57 -- cgit v1.1 From e8f03925cc307427dfda0f2f250980fcd3e2d6cf Mon Sep 17 00:00:00 2001 From: Chih-Min Chao Date: Mon, 22 Feb 2021 19:22:09 -0800 Subject: rvv: add vsetivli Signed-off-by: Chih-Min Chao --- opcodes-rvv | 7 ++++--- parse_opcodes | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/opcodes-rvv b/opcodes-rvv index f23f590..808e6b1 100644 --- a/opcodes-rvv +++ b/opcodes-rvv @@ -4,12 +4,13 @@ # is given by specifying one or more range/value pairs: # hi..lo=value or bit=value or arg=value (e.g. 6..2=0x45 10=1 rd=0) # -# is one of vd, vs3, vs1, vs2, vm, nf, wd, simm5, zimm11 +# is one of vd, vs3, vs1, vs2, vm, nf, wd, simm5, zimm10, zimm11 # configuration setting # https://github.com/riscv/riscv-v-spec/blob/master/vcfg-format.adoc -vsetvli 31=0 zimm11 rs1 14..12=0x7 rd 6..0=0x57 -vsetvl 31=1 30..25=0x0 rs2 rs1 14..12=0x7 rd 6..0=0x57 +vsetivli 31=1 30=1 zimm10 zimm 14..12=0x7 rd 6..0=0x57 +vsetvli 31=0 zimm11 rs1 14..12=0x7 rd 6..0=0x57 +vsetvl 31=1 30..25=0x0 rs2 rs1 14..12=0x7 rd 6..0=0x57 # # Vector Loads and Store diff --git a/parse_opcodes b/parse_opcodes index 1118e18..6f4ccec 100755 --- a/parse_opcodes +++ b/parse_opcodes @@ -46,6 +46,7 @@ arglut['wd'] = (26,26) arglut['amoop'] = (31,27) arglut['nf'] = (31,29) arglut['simm5'] = (19,15) +arglut['zimm10'] = (29,20) arglut['zimm11'] = (30,20) -- cgit v1.1