LoongArch: Allow s9 as a register alias
commitf628a30f4dbdee9b4531314d72c7762f1fbcf8ff
authorXi Ruoyao <xry111@xry111.site>
Thu, 25 Jan 2024 15:49:13 +0000 (25 23:49 +0800)
committerXi Ruoyao <xry111@xry111.site>
Tue, 5 Mar 2024 13:03:17 +0000 (5 21:03 +0800)
tree6ea9cfa7ff83da8ccce7590ddb4501c167a511a1
parent49a1a340ea0eef681f23b6861f3cdb6840aadd99
LoongArch: Allow s9 as a register alias

The psABI allows using s9 as an alias of r22.

gcc/ChangeLog:

* config/loongarch/loongarch.h (ADDITIONAL_REGISTER_NAMES): Add
s9 as an alias of r22.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/regname-fp-s9.c: New test.
gcc/config/loongarch/loongarch.h
gcc/testsuite/gcc.target/loongarch/regname-fp-s9.c [new file with mode: 0644]