[clang] [llvm] [AArch64] Add ability to list extensions enabled for a target (PR #95805)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 18 02:15:35 PDT 2024
================
@@ -13,3 +13,57 @@
// RUN: %clang --target=aarch64_be -mbig-endian -march=armv8.6a -### -c %s 2>&1 | FileCheck -check-prefix=GENERICV86A-BE %s
// RUN: %clang --target=aarch64_be -mbig-endian -march=armv8.6-a -### -c %s 2>&1 | FileCheck -check-prefix=GENERICV86A-BE %s
// GENERICV86A-BE: "-cc1"{{.*}} "-triple" "aarch64_be{{.*}}" "-target-cpu" "generic" "-target-feature" "+v8.6a"{{.*}} "-target-feature" "+neon"
+
+// ===== Architecture extensions =====
+
+// RUN: %clang -target aarch64 -march=armv8.6-a --print-enabled-extensions 2>&1 | FileCheck -check-prefix=ARCH-EXTENSION --implicit-check-not FEAT_ %s
----------------
DavidSpickett wrote:
Ok got it, the CHECK consumes the line so if there was anything left matching FEAT_, something was forgotten. Thanks.
https://github.com/llvm/llvm-project/pull/95805
More information about the llvm-commits
mailing list