1 ! Test --print-supported-cpus and associated aliases, -mcpu=help and
4 ! RUN: %if x86-registered-target %{ \
5 ! RUN: %flang --target=x86_64-unknown-linux-gnu --print-supported-cpus 2>&1 \
6 ! RUN: | FileCheck %s --check-prefixes=X86,CHECK \
8 ! RUN: %if x86-registered-target %{ \
9 ! RUN: %flang --target=x86_64-unknown-linux-gnu -mcpu=help 2>&1 \
10 ! RUN: | FileCheck %s --check-prefixes=X86,CHECK \
12 ! RUN: %if x86-registered-target %{ \
13 ! RUN: %flang --target=x86_64-unknown-linux-gnu -mtune=help 2>&1 \
14 ! RUN: | FileCheck %s --check-prefixes=X86,CHECK \
17 ! RUN: %if aarch64-registered-target %{ \
18 ! RUN: %flang --target=aarch64-unknown-linux-gnu --print-supported-cpus 2>&1 \
19 ! RUN: | FileCheck %s --check-prefixes=AARCH64,CHECK \
21 ! RUN: %if aarch64-registered-target %{ \
22 ! RUN: %flang --target=aarch64-unknown-linux-gnu -mcpu=help 2>&1 \
23 ! RUN: | FileCheck %s --check-prefixes=AARCH64,CHECK \
25 ! RUN: %if aarch64-registered-target %{ \
26 ! RUN: %flang --target=aarch64-unknown-linux-gnu -mtune=help 2>&1 \
27 ! RUN: | FileCheck %s --check-prefixes=AARCH64,CHECK \
30 ! CHECK-NOT: warning: argument unused during compilation
32 ! X86: Target: x86_64-unknown-linux-gnu
35 ! AARCH64: Target: aarch64-unknown-linux-gnu
39 ! The footer displayed contains a reference to clang. This should be changed to
40 ! flang, but that requires a change in llvm/MCSubtargetInfo. When that happens,
41 ! this test will need to be updated and this comment can be removed.
43 ! CHECK: Use -mcpu or -mtune to specify the target's processor.
44 ! CHECK: For example, clang --target=aarch64-unknown-linux-gnu