[AArch64] Allow PAC mnemonics in the HINT space with PAC disabled
authorPablo Barrio <pablo.barrio@arm.com>
Tue, 10 Mar 2020 15:05:49 +0000 (15:05 +0000)
committerPablo Barrio <pablo.barrio@arm.com>
Fri, 24 Apr 2020 15:56:51 +0000 (16:56 +0100)
commitd4e7b000b2ebe7db2e2e1f3d0f5d37793e6d1c59
treeb8e339b08e4e1ceb3c4fb778cfc6b21f92e87a9e
parent6121122a3b93c11b65c862c0028736de652e2e65
[AArch64] Allow PAC mnemonics in the HINT space with PAC disabled

Summary:
It is important to emit HINT instructions instead of PAC ones when
PAC is disabled. This allows compatibility with other assemblers
(e.g. GAS). This was implemented in commit da33762de853.

Still, developers of assembly code will want to write code that is
compatible with both pre- and post-PAC CPUs. They could use HINT
mnemonics, but the new mnemonics are a lot more readable (e.g.
paciaz instead of hint #24), and they will result in the same
encodings. So, while LLVM should not *emit* the new mnemonics when
PAC is disabled, this patch will at least make LLVM *accept*
assembly code that uses them.

Reviewers: danielkiss, chill, olista01, LukeCheeseman, simon_tatham

Subscribers: kristof.beyls, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78372
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/test/MC/AArch64/armv8.3a-signed-pointer.s