diff options
author | WANG Xuerui <git@xen0n.name> | 2023-06-30 00:35:04 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2023-06-30 10:18:04 +0800 |
commit | 6637ae9232f0ba4442a2b171ff9571a5aff0f0e8 (patch) | |
tree | 3d869181eff52ae44d1c204d319aecfd3de8434b /zlib | |
parent | 6ad6615a79843aa224710a70a33fd15777f74f49 (diff) | |
download | binutils-6637ae9232f0ba4442a2b171ff9571a5aff0f0e8.zip binutils-6637ae9232f0ba4442a2b171ff9571a5aff0f0e8.tar.gz binutils-6637ae9232f0ba4442a2b171ff9571a5aff0f0e8.tar.bz2 |
LoongArch: Deprecate $v[01], $fv[01] and $x names per spec
As outlined in the LoongArch ELF psABI spec [1], it is actually already
2 versions after the initial LoongArch support, and the $v[01] and
$fv[01] names should really get sunset by now.
In addition, the "$x" name for $r21 was never included in any released
version of the ABI spec, and such usages are all fixed to say just $r21
for every project I could think of that accepted a LoongArch port.
Plus, the upcoming LSX/LASX support makes use of registers named
"$vrNN" and "$xrNN", so having "$vN" and "$x" alongside would almost
certainly create confusion for developers.
Issue warnings for such usages per the deprecation procedure detailed
in the spec, so we can finally remove support in the next release cycle
after this.
[1]: https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html
gas/ChangeLog:
* config/tc-loongarch.c: Init canonical register ABI name
mappings and deprecated register names.
(loongarch_args_parser_can_match_arg_helper): Warn in case of
deprecated register name usage.
* testsuite/gas/loongarch/deprecated_reg_aliases.d: New test.
* testsuite/gas/loongarch/deprecated_reg_aliases.l: Likewise.
* testsuite/gas/loongarch/deprecated_reg_aliases.s: Likewise.
include/ChangeLog:
* opcode/loongarch.h: Rename global variables.
opcodes/ChangeLog:
* loongarch-opc.c: Rename the alternate/deprecated register name
mappings, and move $x to the deprecated name map.
Signed-off-by: WANG Xuerui <git@xen0n.name>
Diffstat (limited to 'zlib')
0 files changed, 0 insertions, 0 deletions