Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Driver / print-supported-extensions.c
blob17894fc0f7ee0b47821912b63cedac23ef6a7024
1 // Test that --print-supported-extensions lists supported -march extensions
2 // on supported architectures, and errors on unsupported architectures.
4 // RUN: %if aarch64-registered-target %{ %clang --target=aarch64-linux-gnu \
5 // RUN: --print-supported-extensions 2>&1 | FileCheck %s --check-prefix AARCH64 %}
6 // AARCH64: All available -march extensions for AArch64
7 // AARCH64: Name Description
8 // AARCH64: aes Enable AES support (FEAT_AES, FEAT_PMULL)
10 // RUN: %if riscv-registered-target %{ %clang --target=riscv64-linux-gnu \
11 // RUN: --print-supported-extensions 2>&1 | FileCheck %s --check-prefix RISCV %}
12 // RISCV: All available -march extensions for RISC-V
13 // RISCV: Name Version Description
14 // RISCV: i 2.1
16 // RUN: %if arm-registered-target %{ %clang --target=arm-linux-gnu \
17 // RUN: --print-supported-extensions 2>&1 | FileCheck %s --check-prefix ARM %}
18 // ARM: All available -march extensions for ARM
19 // ARM: Name Description
20 // ARM: crc Enable support for CRC instructions
22 // RUN: %if x86-registered-target %{ not %clang --target=x86_64-linux-gnu \
23 // RUN: --print-supported-extensions 2>&1 | FileCheck %s --check-prefix X86 %}
24 // X86: error: option '--print-supported-extensions' cannot be specified on this target