aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-riscv.c
diff options
context:
space:
mode:
authorNelson Chu <nelson@rivosinc.com>2022-10-04 21:11:59 +0800
committerNelson Chu <nelson@rivosinc.com>2022-10-04 21:15:51 +0800
commit136ea8742027eaa257be7ef9a4dbdc86c08aba27 (patch)
tree15c993bb1cc57a40b87490a209d583b0f930734c /bfd/elfxx-riscv.c
parentd71eca64e70c31e0d32396a0b6c60e3ea9eb420b (diff)
downloadgdb-136ea8742027eaa257be7ef9a4dbdc86c08aba27.zip
gdb-136ea8742027eaa257be7ef9a4dbdc86c08aba27.tar.gz
gdb-136ea8742027eaa257be7ef9a4dbdc86c08aba27.tar.bz2
RISC-V: Renamed INSN_CLASS for floating point in integer extensions.
Just added suffix _INX for those INSN_CLASS should be enough to represent their fpr can be replaced by gpr.
Diffstat (limited to 'bfd/elfxx-riscv.c')
-rw-r--r--bfd/elfxx-riscv.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
index c67d416..1bcc6c0 100644
--- a/bfd/elfxx-riscv.c
+++ b/bfd/elfxx-riscv.c
@@ -2329,29 +2329,29 @@ riscv_multi_subset_supports (riscv_parse_subset_t *rps,
case INSN_CLASS_D_AND_C:
return (riscv_subset_supports (rps, "d")
&& riscv_subset_supports (rps, "c"));
- case INSN_CLASS_F_OR_ZFINX:
+ case INSN_CLASS_F_INX:
return (riscv_subset_supports (rps, "f")
|| riscv_subset_supports (rps, "zfinx"));
- case INSN_CLASS_D_OR_ZDINX:
+ case INSN_CLASS_D_INX:
return (riscv_subset_supports (rps, "d")
|| riscv_subset_supports (rps, "zdinx"));
- case INSN_CLASS_Q_OR_ZQINX:
+ case INSN_CLASS_Q_INX:
return (riscv_subset_supports (rps, "q")
|| riscv_subset_supports (rps, "zqinx"));
- case INSN_CLASS_ZFH_OR_ZHINX:
+ case INSN_CLASS_ZFH_INX:
return (riscv_subset_supports (rps, "zfh")
|| riscv_subset_supports (rps, "zhinx"));
case INSN_CLASS_ZFHMIN:
return riscv_subset_supports (rps, "zfhmin");
- case INSN_CLASS_ZFHMIN_OR_ZHINXMIN:
+ case INSN_CLASS_ZFHMIN_INX:
return (riscv_subset_supports (rps, "zfhmin")
|| riscv_subset_supports (rps, "zhinxmin"));
- case INSN_CLASS_ZFHMIN_AND_D:
+ case INSN_CLASS_ZFHMIN_AND_D_INX:
return ((riscv_subset_supports (rps, "zfhmin")
&& riscv_subset_supports (rps, "d"))
|| (riscv_subset_supports (rps, "zhinxmin")
&& riscv_subset_supports (rps, "zdinx")));
- case INSN_CLASS_ZFHMIN_AND_Q:
+ case INSN_CLASS_ZFHMIN_AND_Q_INX:
return ((riscv_subset_supports (rps, "zfhmin")
&& riscv_subset_supports (rps, "q"))
|| (riscv_subset_supports (rps, "zhinxmin")
@@ -2478,20 +2478,19 @@ riscv_multi_subset_supports_ext (riscv_parse_subset_t *rps,
return "d";
else
return "c";
- case INSN_CLASS_F_OR_ZFINX:
- /* i18n: Formatted like "extension `f' or `zfinx' required". */
+ case INSN_CLASS_F_INX:
return _("f' or `zfinx");
- case INSN_CLASS_D_OR_ZDINX:
+ case INSN_CLASS_D_INX:
return _("d' or `zdinx");
- case INSN_CLASS_Q_OR_ZQINX:
+ case INSN_CLASS_Q_INX:
return _("q' or `zqinx");
- case INSN_CLASS_ZFH_OR_ZHINX:
+ case INSN_CLASS_ZFH_INX:
return _("zfh' or `zhinx");
case INSN_CLASS_ZFHMIN:
return "zfhmin";
- case INSN_CLASS_ZFHMIN_OR_ZHINXMIN:
+ case INSN_CLASS_ZFHMIN_INX:
return _("zfhmin' or `zhinxmin");
- case INSN_CLASS_ZFHMIN_AND_D:
+ case INSN_CLASS_ZFHMIN_AND_D_INX:
if (riscv_subset_supports (rps, "zfhmin"))
return "d";
else if (riscv_subset_supports (rps, "d"))
@@ -2502,7 +2501,7 @@ riscv_multi_subset_supports_ext (riscv_parse_subset_t *rps,
return "zhinxmin";
else
return _("zfhmin' and `d', or `zhinxmin' and `zdinx");
- case INSN_CLASS_ZFHMIN_AND_Q:
+ case INSN_CLASS_ZFHMIN_AND_Q_INX:
if (riscv_subset_supports (rps, "zfhmin"))
return "q";
else if (riscv_subset_supports (rps, "q"))