Skip to content

Commit f344c02

Browse files
committed
[AArch64] Add missing "pauth" feature to the .arch_extension directive.
Differential Revision: https://reviews.llvm.org/D94970
1 parent a1d4649 commit f344c02

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2915,6 +2915,7 @@ static const struct Extension {
29152915
{"sve2-bitperm", {AArch64::FeatureSVE2BitPerm}},
29162916
{"ls64", {AArch64::FeatureLS64}},
29172917
{"xs", {AArch64::FeatureXS}},
2918+
{"pauth", {AArch64::FeaturePAuth}},
29182919
// FIXME: Unsupported extensions
29192920
{"pan", {}},
29202921
{"lor", {}},

llvm/test/MC/AArch64/armv8.3a-pauth.s

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+pauth < %s | FileCheck %s
2+
3+
paciasp
4+
5+
// CHECK: .text
6+
// CHECK: paciasp // encoding: [0x3f,0x23,0x03,0xd5]

llvm/test/MC/AArch64/directive-arch_extension.s

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,7 @@ ldapr x0, [x1]
7171
.arch_extension ls64
7272
ld64b x0, [x13]
7373
// CHECK: ld64b x0, [x13]
74+
75+
.arch_extension pauth
76+
paciasp
77+
// CHECK: paciasp

0 commit comments

Comments
 (0)