forked from wangliu-iscas/binutils-gdb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 LASX support makes use of registers named "$xrNN", so having "$x" alongside would potentially 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
- Loading branch information
1 parent
324998b
commit 2a85d38
Showing
6 changed files
with
72 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#name: Deprecated register aliases | ||
#as-new: | ||
#objdump: -d | ||
#warning_output: deprecated_reg_aliases.l | ||
|
||
.*:[ ]+file format .* | ||
|
||
|
||
Disassembly of section .text: | ||
|
||
0000000000000000 <foo>: | ||
[ ]+0:[ ]+14acf125[ ]+lu12i\.w[ ]+\$a1, 354185\(0x56789\) | ||
[ ]+4:[ ]+038048a5[ ]+ori[ ]+\$a1, \$a1, 0x12 | ||
[ ]+8:[ ]+16024685[ ]+lu32i\.d[ ]+\$a1, 4660\(0x1234\) | ||
[ ]+c:[ ]+08200420[ ]+fmadd\.d[ ]+\$fa0, \$fa1, \$fa1, \$fa0 | ||
[ ]+10:[ ]+380c16a4[ ]+ldx\.d[ ]+\$a0, \$r21, \$a1 | ||
[ ]+14:[ ]+4c000020[ ]+jirl[ ]+\$zero, \$ra, 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.*Assembler messages: | ||
.*:2: Warning: register alias \$v1 is deprecated, use \$a1 instead | ||
.*:3: Warning: register alias \$fv0 is deprecated, use \$fa0 instead | ||
.*:3: Warning: register alias \$fv1 is deprecated, use \$fa1 instead | ||
.*:3: Warning: register alias \$fv1 is deprecated, use \$fa1 instead | ||
.*:4: Warning: register alias \$v0 is deprecated, use \$a0 instead | ||
.*:4: Warning: register alias \$x is deprecated, use \$r21 instead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
foo: | ||
li.d $v1, 0x123456789012 | ||
fmadd.d $fv0, $fv1, $fv1, $fa0 | ||
ldx.d $v0, $x, $a1 | ||
ret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters