[clang] [llvm] [AArch64] Add ability to list extensions enabled for a target (PR #95805)

Jon Roelofs via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 17 12:52:57 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
----------------
jroelofs wrote:

It ensures that every emitted line is covered by a CHECK.

https://github.com/llvm/llvm-project/pull/95805


More information about the llvm-commits mailing list