[clang][bytecode] Implement __builtin_reduce_mul (#118287)
[llvm-project.git] / flang / test / Driver / print-supported-cpus.f90
blob60b725d4e1dcfcd8c93aabfea40e170a01cfd006
1 ! Test --print-supported-cpus and associated aliases, -mcpu=help and
2 ! -mtune=help
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 \
7 ! RUN: %}
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 \
11 ! RUN: %}
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 \
15 ! RUN: %}
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 \
20 ! RUN: %}
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 \
24 ! RUN: %}
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 \
28 ! RUN: %}
30 ! CHECK-NOT: warning: argument unused during compilation
32 ! X86: Target: x86_64-unknown-linux-gnu
33 ! X86: corei7
35 ! AARCH64: Target: aarch64-unknown-linux-gnu
36 ! AARCH64: cortex-a73
37 ! AARCH64: cortex-a75
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
46 end program