0007-Rename-bdep-to-bdecompress.patch 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. From 84473196ba4b0c79bc9cb7a36d029fe6510d26a6 Mon Sep 17 00:00:00 2001
  2. From: LevyHsu <admin@levyhsu.com>
  3. Date: Tue, 8 Jun 2021 16:24:03 +0800
  4. Subject: [PATCH 07/28] Rename bdep to bdecompress
  5. MATCH_BDECOMPRESS
  6. MASK_BDECOMPRESS
  7. ---
  8. include/opcode/riscv-opc.h | 12 ++++++------
  9. opcodes/riscv-opc.c | 4 ++--
  10. 2 files changed, 8 insertions(+), 8 deletions(-)
  11. diff --git a/include/opcode/riscv-opc.h b/include/opcode/riscv-opc.h
  12. index 5bb3803d03..fc08a3be7e 100644
  13. --- a/include/opcode/riscv-opc.h
  14. +++ b/include/opcode/riscv-opc.h
  15. @@ -535,8 +535,8 @@
  16. #define MASK_UNSHFL 0xfe00707f
  17. #define MATCH_UNSHFLI 0x8005013
  18. #define MASK_UNSHFLI 0xfc00707f
  19. -#define MATCH_BDEP 0x48006033
  20. -#define MASK_BDEP 0xfe00707f
  21. +#define MATCH_BDECOMPRESS 0x48006033
  22. +#define MASK_BDECOMPRESS 0xfe00707f
  23. #define MATCH_SEXT_B 0x60401013
  24. #define MASK_SEXT_B 0xfff0707f
  25. #define MATCH_SEXT_H 0x60501013
  26. @@ -663,8 +663,8 @@
  27. #define MASK_SHFLW 0xfe00707f
  28. #define MATCH_UNSHFLW 0x800503b
  29. #define MASK_UNSHFLW 0xfe00707f
  30. -#define MATCH_BDEPW 0x4800603b
  31. -#define MASK_BDEPW 0xfe00707f
  32. +#define MATCH_BDECOMPRESSW 0x4800603b
  33. +#define MASK_BDECOMPRESSW 0xfe00707f
  34. #define MATCH_BFPW 0x4800703b
  35. #define MASK_BFPW 0xfe00707f
  36. #define MATCH_XPERM_N 0x28002033
  37. @@ -3264,7 +3264,7 @@ DECLARE_INSN(bset, MATCH_BSET, MASK_BSET)
  38. DECLARE_INSN(bclr, MATCH_BCLR, MASK_BCLR)
  39. DECLARE_INSN(binv, MATCH_BINV, MASK_BINV)
  40. DECLARE_INSN(bext, MATCH_BEXT, MASK_BEXT)
  41. -DECLARE_INSN(bdep, MATCH_BDEP, MASK_BDEP)
  42. +DECLARE_INSN(bdecompress, MATCH_BDECOMPRESS, MASK_BDECOMPRESS)
  43. DECLARE_INSN(bseti, MATCH_BSETI, MASK_BSETI)
  44. DECLARE_INSN(bclri, MATCH_BCLRI, MASK_BCLRI)
  45. DECLARE_INSN(binvi, MATCH_BINVI, MASK_BINVI)
  46. @@ -3273,7 +3273,7 @@ DECLARE_INSN(bsetw, MATCH_BSETW, MASK_BSETW)
  47. DECLARE_INSN(bclrw, MATCH_BCLRW, MASK_BCLRW)
  48. DECLARE_INSN(binvw, MATCH_BINVW, MASK_BINVW)
  49. DECLARE_INSN(bextw, MATCH_BEXTW, MASK_BEXTW)
  50. -DECLARE_INSN(bdepw, MATCH_BDEPW, MASK_BDEPW)
  51. +DECLARE_INSN(bdecompressw, MATCH_BDECOMPRESSW, MASK_BDECOMPRESSW)
  52. DECLARE_INSN(bsetiw, MATCH_BSETIW, MASK_BSETIW)
  53. DECLARE_INSN(bclriw, MATCH_BCLRIW, MASK_BCLRIW)
  54. DECLARE_INSN(binviw, MATCH_BINVIW, MASK_BINVIW)
  55. diff --git a/opcodes/riscv-opc.c b/opcodes/riscv-opc.c
  56. index dc7c1fb428..5783c79df9 100644
  57. --- a/opcodes/riscv-opc.c
  58. +++ b/opcodes/riscv-opc.c
  59. @@ -1497,7 +1497,7 @@ const struct riscv_opcode riscv_opcodes[] =
  60. {"bclr", 0, INSN_CLASS_ZBS, "d,s,t", MATCH_BCLR, MASK_BCLR, match_opcode, 0 },
  61. {"binv", 0, INSN_CLASS_ZBS, "d,s,t", MATCH_BINV, MASK_BINV, match_opcode, 0 },
  62. {"bext", 0, INSN_CLASS_ZBS_OR_ZBE, "d,s,t", MATCH_BEXT, MASK_BEXT, match_opcode, 0 },
  63. -{"bdep", 0, INSN_CLASS_ZBE, "d,s,t", MATCH_BDEP, MASK_BDEP, match_opcode, 0 },
  64. +{"bdecompress",0, INSN_CLASS_ZBE, "d,s,t", MATCH_BDECOMPRESS, MASK_BDECOMPRESS, match_opcode, 0 },
  65. {"bseti", 0, INSN_CLASS_ZBS, "d,s,>", MATCH_BSETI, MASK_BSETI, match_opcode, 0 },
  66. {"bclri", 0, INSN_CLASS_ZBS, "d,s,>", MATCH_BCLRI, MASK_BCLRI, match_opcode, 0 },
  67. {"binvi", 0, INSN_CLASS_ZBS, "d,s,>", MATCH_BINVI, MASK_BINVI, match_opcode, 0 },
  68. @@ -1506,7 +1506,7 @@ const struct riscv_opcode riscv_opcodes[] =
  69. {"bclrw", 64, INSN_CLASS_ZBS, "d,s,t", MATCH_BCLRW, MASK_BCLRW, match_opcode, 0 },
  70. {"binvw", 64, INSN_CLASS_ZBS, "d,s,t", MATCH_BINVW, MASK_BINVW, match_opcode, 0 },
  71. {"bextw", 64, INSN_CLASS_ZBS_OR_ZBE, "d,s,t", MATCH_BEXTW, MASK_BEXTW, match_opcode, 0 },
  72. -{"bdepw", 64, INSN_CLASS_ZBE, "d,s,<", MATCH_BDEPW, MASK_BDEPW, match_opcode, 0 },
  73. +{"bdecompressw",64, INSN_CLASS_ZBE, "d,s,<", MATCH_BDECOMPRESSW, MASK_BDECOMPRESSW, match_opcode, 0 },
  74. {"bsetiw", 64, INSN_CLASS_ZBS, "d,s,<", MATCH_BSETIW, MASK_BSETIW, match_opcode, 0 },
  75. {"bclriw", 64, INSN_CLASS_ZBS, "d,s,<", MATCH_BCLRIW, MASK_BCLRIW, match_opcode, 0 },
  76. {"binviw", 64, INSN_CLASS_ZBS, "d,s,<", MATCH_BINVIW, MASK_BINVIW, match_opcode, 0 },
  77. --
  78. 2.33.0