[AArch64][AsmParser] Remove 'x31' alias for 'sp/xzr' register.
authorCaroline Concatto <caroline.concatto@arm.com>
Fri, 23 Oct 2020 09:37:08 +0000 (10:37 +0100)
committerCaroline Concatto <caroline.concatto@arm.com>
Mon, 2 Nov 2020 07:57:05 +0000 (07:57 +0000)
commit8b281bfaf35d00d42c2993fd5a80d749cc21f45e
tree234f76ab67f7fa473d969915881cd892b9af065f
parent76a168bce01dd950852bc86effd6f379ecf78f82
[AArch64][AsmParser] Remove 'x31' alias for 'sp/xzr' register.

Only the aliases 'xzr' and 'sp' exist for the physical register x31.
The reason for wanting to remove the alias 'x31' is because it allows users
to write invalid asm that is not accepted by the GNU assembler.

Is there any objection to removing this alias? Or do we want to keep
this for compatibility with existing code that uses w31/x31?

Differential Revision: https://reviews.llvm.org/D90153
llvm/docs/ReleaseNotes.rst
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
llvm/test/MC/AArch64/basic-a64-diagnostics.s
llvm/test/tools/llvm-mca/AArch64/Exynos/load.s
llvm/test/tools/llvm-mca/AArch64/Exynos/store.s