[llvm-mc][AArch64] HINT instruction disassembled as BTI
authorAlexandros Lamprineas <alexandros.lamprineas@arm.com>
Fri, 14 May 2021 08:37:44 +0000 (09:37 +0100)
committerAlexandros Lamprineas <alexandros.lamprineas@arm.com>
Fri, 14 May 2021 09:05:37 +0000 (10:05 +0100)
commit10798709713a9b5d4ff8d8f5961b3c2fdb81d887
tree3560608d5fdd54adeef9519bbb059f80df392e26
parentc12c8124e14217779eb5b8d3a2a92a6469a799e7
[llvm-mc][AArch64] HINT instruction disassembled as BTI

The Arm Architecture Reference Manual says that the SystemHintOp_BTI
opcode is prefered when CRm:op2 matches 0100:xx0, but llvm-mc
currently accepts 0100:xxx, which isn't right.

Differential Revision: https://reviews.llvm.org/D102415
llvm/lib/Target/AArch64/AArch64InstrFormats.td
llvm/lib/Target/AArch64/AArch64SystemOperands.td
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
llvm/test/MC/Disassembler/AArch64/armv8.5a-bti.txt