aarch64: Fix LDAPURS assembly output
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 18 Nov 2022 14:29:36 +0000 (14:29 +0000)
committerKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 18 Nov 2022 14:29:36 +0000 (14:29 +0000)
commit92905f614e206a94d4ba72a4d425f78859ead418
tree73333eb512865b2dfeca07f02aa8eaf494957835
parent20d2a8c24f3ca487ffd35fefcc9b1562bb10b609
aarch64: Fix LDAPURS assembly output

... And another follow-up once I realised that the sign-extending load, of course,
needs to have strictly an X-reg as a destination for DImode extensions and a W-reg
for SImode ones.

Tested on aarch64-none-linux.

gcc/ChangeLog:

* config/aarch64/atomics.md (*aarch64_atomic_load<ALLX:mode>_rcpc_sext):
Use <GPI:w>  for destination format.
* config/aarch64/iterators.md (w_sz): Delete.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/ldapr-sext.c: Adjust expected output.
gcc/config/aarch64/atomics.md
gcc/config/aarch64/iterators.md
gcc/testsuite/gcc.target/aarch64/ldapr-sext.c