forked from OSchip/llvm-project
[AArch64] Add missing "flagm" feature to the .arch_extension directive.
Depends on D94970 Differential Revision: https://reviews.llvm.org/D94971
This commit is contained in:
parent
f344c028de
commit
cab20f6105
|
@ -2916,6 +2916,7 @@ static const struct Extension {
|
|||
{"ls64", {AArch64::FeatureLS64}},
|
||||
{"xs", {AArch64::FeatureXS}},
|
||||
{"pauth", {AArch64::FeaturePAuth}},
|
||||
{"flagm", {AArch64::FeatureFlagM}},
|
||||
// FIXME: Unsupported extensions
|
||||
{"pan", {}},
|
||||
{"lor", {}},
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+flagm < %s | FileCheck %s
|
||||
|
||||
cfinv
|
||||
|
||||
// CHECK: .text
|
||||
cfinv // encoding: [0x1f,0x40,0x00,0xd5]
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: not llvm-mc -triple aarch64 \
|
||||
// RUN: -mattr=+crc,+sm4,+sha3,+sha2,+aes,+fp,+neon,+ras,+lse,+predres,+ccdp,+mte,+tlb-rmi,+pan-rwv,+ccpp,+rcpc,+ls64 \
|
||||
// RUN: -mattr=+crc,+sm4,+sha3,+sha2,+aes,+fp,+neon,+ras,+lse,+predres,+ccdp,+mte,+tlb-rmi,+pan-rwv,+ccpp,+rcpc,+ls64,+flagm \
|
||||
// RUN: -filetype asm -o - %s 2>&1 | FileCheck %s
|
||||
|
||||
.arch_extension axp64
|
||||
|
@ -124,3 +124,10 @@ ld64b x0, [x13]
|
|||
ld64b x0, [x13]
|
||||
// CHECK: [[@LINE-1]]:1: error: instruction requires: ls64
|
||||
// CHECK-NEXT: ld64b x0, [x13]
|
||||
|
||||
cfinv
|
||||
// CHECK-NOT: [[@LINE-1]]:1: error: instruction requires: flagm
|
||||
.arch_extension noflagm
|
||||
cfinv
|
||||
// CHECK: [[@LINE-1]]:1: error: instruction requires: flagm
|
||||
// CHECK-NEXT: cfinv
|
||||
|
|
|
@ -75,3 +75,7 @@ ld64b x0, [x13]
|
|||
.arch_extension pauth
|
||||
paciasp
|
||||
// CHECK: paciasp
|
||||
|
||||
.arch_extension flagm
|
||||
cfinv
|
||||
// CHECK: cfinv
|
||||
|
|
Loading…
Reference in New Issue