[lldb][AArch64] Use "+all" feature for the disassembler

The "+all" feature name was added in https://reviews.llvm.org/D128029.

This feature means we don't have to generate a list of features
or use a base architecture feature.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D129177
This commit is contained in:
David Spickett 2022-07-05 13:25:35 +00:00
parent d5a559d906
commit e5fdcfac1b
2 changed files with 2 additions and 10 deletions

View File

@ -1181,11 +1181,7 @@ DisassemblerLLVMC::DisassemblerLLVMC(const ArchSpec &arch,
// If any AArch64 variant, enable latest ISA with all extensions.
if (triple.isAArch64()) {
features_str += "+v9.3a,";
std::vector<llvm::StringRef> features;
// Get all possible features
llvm::AArch64::getExtensionFeatures(-1, features);
features_str += llvm::join(features, ",");
features_str += "+all,";
if (triple.getVendor() == llvm::Triple::Apple)
cpu = "apple-latest";

View File

@ -3,11 +3,7 @@
# This checks that lldb's disassembler enables every extension that an AArch64
# target could have.
# RUN: llvm-mc -filetype=obj -triple aarch64-linux-gnueabihf %s -o %t \
# RUN: --mattr=+tme,+mte,+crc,+lse,+rdm,+sm4,+sha3,+aes,+dotprod,+fullfp16 \
# RUN: --mattr=+fp16fml,+sve,+sve2,+sve2-aes,+sve2-sm4,+sve2-sha3,+sve2-bitperm \
# RUN: --mattr=+spe,+rcpc,+ssbs,+sb,+predres,+bf16,+mops,+hbc,+sme,+sme-i64 \
# RUN: --mattr=+sme-f64,+flagm,+pauth,+brbe,+ls64,+f64mm,+f32mm,+i8mm,+rand
# RUN: llvm-mc -filetype=obj -triple aarch64-linux-gnueabihf %s -o %t --mattr=+all
# RUN: %lldb %t -o "disassemble -n fn" -o exit 2>&1 | FileCheck %s
.globl fn