[llvm] [clang] Enable descriptions for --print-supported-extensions (PR #66715)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 20 01:59:32 PDT 2023
================
@@ -4,14 +4,17 @@
// RUN: %if aarch64-registered-target %{ %clang --target=aarch64-linux-gnu \
// RUN: --print-supported-extensions 2>&1 | FileCheck %s --check-prefix AARCH64 %}
// AARCH64: All available -march extensions for AArch64
+// AARCH64: Name Description
// RUN: %if riscv-registered-target %{ %clang --target=riscv64-linux-gnu \
// RUN: --print-supported-extensions 2>&1 | FileCheck %s --check-prefix RISCV %}
// RISCV: All available -march extensions for RISC-V
+// RISCV: Name Version Description
// RUN: %if arm-registered-target %{ %clang --target=arm-linux-gnu \
// RUN: --print-supported-extensions 2>&1 | FileCheck %s --check-prefix ARM %}
// ARM: All available -march extensions for ARM
+// ARM: Name Description
----------------
DavidSpickett wrote:
Include the first line of the output as well, so we know it lines up (for all 3 architectures).
Don't use a `-NEXT:` check, just `ARM:` again. Since the extensions may get reordered later and we have no need to be strict.
https://github.com/llvm/llvm-project/pull/66715
More information about the llvm-commits
mailing list