[PATCH] D94970: [AArch64] Add missing "pauth" feature to the .arch_extension directive.
Mark Murray via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 19 06:53:51 PST 2021
MarkMurrayARM created this revision.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
MarkMurrayARM requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D94970
Files:
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
llvm/test/MC/AArch64/armv8.3a-pauth.s
llvm/test/MC/AArch64/directive-arch_extension.s
Index: llvm/test/MC/AArch64/directive-arch_extension.s
===================================================================
--- llvm/test/MC/AArch64/directive-arch_extension.s
+++ llvm/test/MC/AArch64/directive-arch_extension.s
@@ -71,3 +71,7 @@
.arch_extension ls64
ld64b x0, [x13]
// CHECK: ld64b x0, [x13]
+
+.arch_extension pauth
+paciasp
+// CHECK: paciasp
Index: llvm/test/MC/AArch64/armv8.3a-pauth.s
===================================================================
--- /dev/null
+++ llvm/test/MC/AArch64/armv8.3a-pauth.s
@@ -0,0 +1,6 @@
+// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+pauth < %s | FileCheck %s
+
+paciasp
+
+// CHECK: .text
+// CHECK: paciasp // encoding: [0x3f,0x23,0x03,0xd5]
Index: llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
===================================================================
--- llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -2915,6 +2915,7 @@
{"sve2-bitperm", {AArch64::FeatureSVE2BitPerm}},
{"ls64", {AArch64::FeatureLS64}},
{"xs", {AArch64::FeatureXS}},
+ {"pauth", {AArch64::FeaturePAuth}},
// FIXME: Unsupported extensions
{"pan", {}},
{"lor", {}},
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94970.317551.patch
Type: text/x-patch
Size: 1245 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210119/e628a6bc/attachment.bin>
More information about the llvm-commits
mailing list