1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

[AArch64][AsmParser] Add rcpc support in .arch_extension

AArch64 does not support enabling rcpc via .arch_extension in assembly.
GCC, on the other hand, does.

This patch adds 'rcpc' as a valid value to .arch_extension handling.

Differential Revision: https://reviews.llvm.org/D83685
This commit is contained in:
Victor Campos 2020-07-13 14:50:36 +01:00
parent fe0b46e2d5
commit 87198b73e9
3 changed files with 10 additions and 0 deletions

View File

@ -2844,6 +2844,7 @@ static const struct Extension {
{"tlb-rmi", {AArch64::FeatureTLB_RMI}},
{"pan-rwv", {AArch64::FeaturePAN_RWV}},
{"ccpp", {AArch64::FeatureCCPP}},
{"rcpc", {AArch64::FeatureRCPC}},
{"sve", {AArch64::FeatureSVE}},
{"sve2", {AArch64::FeatureSVE2}},
{"sve2-aes", {AArch64::FeatureSVE2AES}},

View File

@ -78,3 +78,8 @@ at s1e1wp, x2
dc cvap, x7
// CHECK: error: DC CVAP requires ccpp
// CHECK-NEXT: dc cvap, x7
.arch_extension norcpc
ldapr x0, [x1]
// CHECK: error: instruction requires: rcpc
// CHECK-NEXT: ldapr x0, [x1]

View File

@ -59,3 +59,7 @@ at s1e1wp, x2
.arch_extension ccpp
dc cvap, x7
// CHECK: dc cvap, x7
.arch_extension rcpc
ldapr x0, [x1]
// CHECK: ldapr x0, [x1]