123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- From 84473196ba4b0c79bc9cb7a36d029fe6510d26a6 Mon Sep 17 00:00:00 2001
- From: LevyHsu <admin@levyhsu.com>
- Date: Tue, 8 Jun 2021 16:24:03 +0800
- Subject: [PATCH 07/28] Rename bdep to bdecompress
- MATCH_BDECOMPRESS
- MASK_BDECOMPRESS
- ---
- include/opcode/riscv-opc.h | 12 ++++++------
- opcodes/riscv-opc.c | 4 ++--
- 2 files changed, 8 insertions(+), 8 deletions(-)
- diff --git a/include/opcode/riscv-opc.h b/include/opcode/riscv-opc.h
- index 5bb3803d03..fc08a3be7e 100644
- --- a/include/opcode/riscv-opc.h
- +++ b/include/opcode/riscv-opc.h
- @@ -535,8 +535,8 @@
- #define MASK_UNSHFL 0xfe00707f
- #define MATCH_UNSHFLI 0x8005013
- #define MASK_UNSHFLI 0xfc00707f
- -#define MATCH_BDEP 0x48006033
- -#define MASK_BDEP 0xfe00707f
- +#define MATCH_BDECOMPRESS 0x48006033
- +#define MASK_BDECOMPRESS 0xfe00707f
- #define MATCH_SEXT_B 0x60401013
- #define MASK_SEXT_B 0xfff0707f
- #define MATCH_SEXT_H 0x60501013
- @@ -663,8 +663,8 @@
- #define MASK_SHFLW 0xfe00707f
- #define MATCH_UNSHFLW 0x800503b
- #define MASK_UNSHFLW 0xfe00707f
- -#define MATCH_BDEPW 0x4800603b
- -#define MASK_BDEPW 0xfe00707f
- +#define MATCH_BDECOMPRESSW 0x4800603b
- +#define MASK_BDECOMPRESSW 0xfe00707f
- #define MATCH_BFPW 0x4800703b
- #define MASK_BFPW 0xfe00707f
- #define MATCH_XPERM_N 0x28002033
- @@ -3264,7 +3264,7 @@ DECLARE_INSN(bset, MATCH_BSET, MASK_BSET)
- DECLARE_INSN(bclr, MATCH_BCLR, MASK_BCLR)
- DECLARE_INSN(binv, MATCH_BINV, MASK_BINV)
- DECLARE_INSN(bext, MATCH_BEXT, MASK_BEXT)
- -DECLARE_INSN(bdep, MATCH_BDEP, MASK_BDEP)
- +DECLARE_INSN(bdecompress, MATCH_BDECOMPRESS, MASK_BDECOMPRESS)
- DECLARE_INSN(bseti, MATCH_BSETI, MASK_BSETI)
- DECLARE_INSN(bclri, MATCH_BCLRI, MASK_BCLRI)
- DECLARE_INSN(binvi, MATCH_BINVI, MASK_BINVI)
- @@ -3273,7 +3273,7 @@ DECLARE_INSN(bsetw, MATCH_BSETW, MASK_BSETW)
- DECLARE_INSN(bclrw, MATCH_BCLRW, MASK_BCLRW)
- DECLARE_INSN(binvw, MATCH_BINVW, MASK_BINVW)
- DECLARE_INSN(bextw, MATCH_BEXTW, MASK_BEXTW)
- -DECLARE_INSN(bdepw, MATCH_BDEPW, MASK_BDEPW)
- +DECLARE_INSN(bdecompressw, MATCH_BDECOMPRESSW, MASK_BDECOMPRESSW)
- DECLARE_INSN(bsetiw, MATCH_BSETIW, MASK_BSETIW)
- DECLARE_INSN(bclriw, MATCH_BCLRIW, MASK_BCLRIW)
- DECLARE_INSN(binviw, MATCH_BINVIW, MASK_BINVIW)
- diff --git a/opcodes/riscv-opc.c b/opcodes/riscv-opc.c
- index dc7c1fb428..5783c79df9 100644
- --- a/opcodes/riscv-opc.c
- +++ b/opcodes/riscv-opc.c
- @@ -1497,7 +1497,7 @@ const struct riscv_opcode riscv_opcodes[] =
- {"bclr", 0, INSN_CLASS_ZBS, "d,s,t", MATCH_BCLR, MASK_BCLR, match_opcode, 0 },
- {"binv", 0, INSN_CLASS_ZBS, "d,s,t", MATCH_BINV, MASK_BINV, match_opcode, 0 },
- {"bext", 0, INSN_CLASS_ZBS_OR_ZBE, "d,s,t", MATCH_BEXT, MASK_BEXT, match_opcode, 0 },
- -{"bdep", 0, INSN_CLASS_ZBE, "d,s,t", MATCH_BDEP, MASK_BDEP, match_opcode, 0 },
- +{"bdecompress",0, INSN_CLASS_ZBE, "d,s,t", MATCH_BDECOMPRESS, MASK_BDECOMPRESS, match_opcode, 0 },
- {"bseti", 0, INSN_CLASS_ZBS, "d,s,>", MATCH_BSETI, MASK_BSETI, match_opcode, 0 },
- {"bclri", 0, INSN_CLASS_ZBS, "d,s,>", MATCH_BCLRI, MASK_BCLRI, match_opcode, 0 },
- {"binvi", 0, INSN_CLASS_ZBS, "d,s,>", MATCH_BINVI, MASK_BINVI, match_opcode, 0 },
- @@ -1506,7 +1506,7 @@ const struct riscv_opcode riscv_opcodes[] =
- {"bclrw", 64, INSN_CLASS_ZBS, "d,s,t", MATCH_BCLRW, MASK_BCLRW, match_opcode, 0 },
- {"binvw", 64, INSN_CLASS_ZBS, "d,s,t", MATCH_BINVW, MASK_BINVW, match_opcode, 0 },
- {"bextw", 64, INSN_CLASS_ZBS_OR_ZBE, "d,s,t", MATCH_BEXTW, MASK_BEXTW, match_opcode, 0 },
- -{"bdepw", 64, INSN_CLASS_ZBE, "d,s,<", MATCH_BDEPW, MASK_BDEPW, match_opcode, 0 },
- +{"bdecompressw",64, INSN_CLASS_ZBE, "d,s,<", MATCH_BDECOMPRESSW, MASK_BDECOMPRESSW, match_opcode, 0 },
- {"bsetiw", 64, INSN_CLASS_ZBS, "d,s,<", MATCH_BSETIW, MASK_BSETIW, match_opcode, 0 },
- {"bclriw", 64, INSN_CLASS_ZBS, "d,s,<", MATCH_BCLRIW, MASK_BCLRIW, match_opcode, 0 },
- {"binviw", 64, INSN_CLASS_ZBS, "d,s,<", MATCH_BINVIW, MASK_BINVIW, match_opcode, 0 },
- --
- 2.33.0
|