[ARM] Correct features on pacbti instructions.
authorDavid Green <david.green@arm.com>
Wed, 27 Jul 2022 08:15:14 +0000 (09:15 +0100)
committerDavid Green <david.green@arm.com>
Wed, 27 Jul 2022 08:15:14 +0000 (09:15 +0100)
commit39f83849640114340fb2144450383a7bd90d5f0b
treed082706feb3ec58c9cd304296a3afedbbc5528a5
parenta0154218c33d1016f297cb2dd75c270b0c8a3ba3
[ARM] Correct features on pacbti instructions.

Given a patch like D129506, using instructions not valid for the current
feature set becomes an error. This updates the Arm hint-space
instructions for pac/bti to require thumbv7m as opposed to 8.1-m.main, to
make them valid when compiling for thumbv7m with -mbranch-protection.

Differential Revision: https://reviews.llvm.org/D129692
llvm/lib/Target/ARM/ARMInstrThumb2.td
llvm/lib/Target/ARM/ARMScheduleA57.td
llvm/test/MC/ARM/armv8.1m-pacbti.s