[PATCH] D78372: [AArch64] Allow PAC mnemonics in the HINT space with PAC disabled
Pablo Barrio via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 17 08:05:28 PDT 2020
pbarrio created this revision.
pbarrio added reviewers: danielkiss, chill, olista01, LukeCheeseman, simon_tatham.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: LLVM.
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 <https://reviews.llvm.org/rGda33762de8531914d4d0dae16bfce2192f02bc79>.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78372
Files:
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/test/MC/AArch64/armv8.3a-signed-pointer.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78372.258328.patch
Type: text/x-patch
Size: 4995 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200417/9c5ac5a8/attachment-0001.bin>
More information about the llvm-commits
mailing list