diff options
-rw-r--r-- | llvm/include/llvm/Support/AArch64TargetParser.def | 2 | ||||
-rw-r--r-- | llvm/test/MC/AArch64/directive-arch-negative.s | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/AArch64TargetParser.def b/llvm/include/llvm/Support/AArch64TargetParser.def index 46d253bf0ec..1700deadeae 100644 --- a/llvm/include/llvm/Support/AArch64TargetParser.def +++ b/llvm/include/llvm/Support/AArch64TargetParser.def @@ -21,7 +21,7 @@ AARCH64_ARCH("invalid", AK_INVALID, nullptr, nullptr, AARCH64_ARCH("armv8-a", AK_ARMV8A, "8-A", "v8", ARMBuildAttrs::CPUArch::v8_A, FK_CRYPTO_NEON_FP_ARMV8, (AArch64::AEK_CRC | AArch64::AEK_CRYPTO | AArch64::AEK_FP | - AArch64::AEK_SIMD | AArch64::AEK_LSE)) + AArch64::AEK_SIMD)) AARCH64_ARCH("armv8.1-a", AK_ARMV8_1A, "8.1-A", "v8.1a", ARMBuildAttrs::CPUArch::v8_A, FK_CRYPTO_NEON_FP_ARMV8, (AArch64::AEK_CRC | AArch64::AEK_CRYPTO | AArch64::AEK_FP | diff --git a/llvm/test/MC/AArch64/directive-arch-negative.s b/llvm/test/MC/AArch64/directive-arch-negative.s index 43ccd792725..21fd90ebdf1 100644 --- a/llvm/test/MC/AArch64/directive-arch-negative.s +++ b/llvm/test/MC/AArch64/directive-arch-negative.s @@ -36,6 +36,14 @@ # CHECK: error: instruction requires: ras # CHECK: esb +// PR32873: without extra features, '.arch' is currently ignored. +// Add an unrelated feature to accept the directive. + .arch armv8+crc + casa w5, w7, [x19] + +# CHECK: error: instruction requires: lse +# CHECK: casa w5, w7, [x19] + .arch armv8.1-a+nolse casa w5, w7, [x20] |