[all-commits] [llvm/llvm-project] d4e7b0: [AArch64] Allow PAC mnemonics in the HINT space wi...

Pablo Barrio via All-commits all-commits at lists.llvm.org
Fri Apr 24 08:58:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d4e7b000b2ebe7db2e2e1f3d0f5d37793e6d1c59
      https://github.com/llvm/llvm-project/commit/d4e7b000b2ebe7db2e2e1f3d0f5d37793e6d1c59
  Author: Pablo Barrio <pablo.barrio at arm.com>
  Date:   2020-04-24 (Fri, 24 Apr 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstrInfo.td
    M llvm/test/MC/AArch64/armv8.3a-signed-pointer.s

  Log Message:
  -----------
  [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




More information about the All-commits mailing list