aboutsummaryrefslogtreecommitdiff
path: root/riscv/encoding.h
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2021-02-22 09:01:30 -0800
committerChih-Min Chao <chihmin.chao@sifive.com>2021-02-24 18:40:55 -0800
commit60428fcc44e0b2cf2932f3e0ce6a66d54755dab6 (patch)
treef4e6f19ff9d9a6182f4211516580f392b487c457 /riscv/encoding.h
parent487f1b7cd8fc74e94ac76f8912ce8f3e335ba940 (diff)
downloadspike-60428fcc44e0b2cf2932f3e0ce6a66d54755dab6.zip
spike-60428fcc44e0b2cf2932f3e0ce6a66d54755dab6.tar.gz
spike-60428fcc44e0b2cf2932f3e0ce6a66d54755dab6.tar.bz2
rvv: add vse1/vle1
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/encoding.h')
-rw-r--r--riscv/encoding.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/riscv/encoding.h b/riscv/encoding.h
index ccc8d74..ba5fa21 100644
--- a/riscv/encoding.h
+++ b/riscv/encoding.h
@@ -1226,6 +1226,10 @@
#define MASK_VSETVLI 0x8000707f
#define MATCH_VSETVL 0x80007057
#define MASK_VSETVL 0xfe00707f
+#define MATCH_VLE1_V 0x2b00007
+#define MASK_VLE1_V 0xfff0707f
+#define MATCH_VSE1_V 0x2b00027
+#define MASK_VSE1_V 0xfff0707f
#define MATCH_VLE8_V 0x7
#define MASK_VLE8_V 0x1df0707f
#define MATCH_VLE16_V 0x5007
@@ -2889,6 +2893,8 @@ DECLARE_INSN(custom3_rd_rs1, MATCH_CUSTOM3_RD_RS1, MASK_CUSTOM3_RD_RS1)
DECLARE_INSN(custom3_rd_rs1_rs2, MATCH_CUSTOM3_RD_RS1_RS2, MASK_CUSTOM3_RD_RS1_RS2)
DECLARE_INSN(vsetvli, MATCH_VSETVLI, MASK_VSETVLI)
DECLARE_INSN(vsetvl, MATCH_VSETVL, MASK_VSETVL)
+DECLARE_INSN(vle1_v, MATCH_VLE1_V, MASK_VLE1_V)
+DECLARE_INSN(vse1_v, MATCH_VSE1_V, MASK_VSE1_V)
DECLARE_INSN(vle8_v, MATCH_VLE8_V, MASK_VLE8_V)
DECLARE_INSN(vle16_v, MATCH_VLE16_V, MASK_VLE16_V)
DECLARE_INSN(vle32_v, MATCH_VLE32_V, MASK_VLE32_V)