brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 60b725d Raw
47 lines · plain
1! Test --print-supported-cpus and associated aliases, -mcpu=help and2! -mtune=help3 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: %}16 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: %}29 30! CHECK-NOT: warning: argument unused during compilation31 32! X86: Target: x86_64-unknown-linux-gnu33! X86: corei734 35! AARCH64: Target: aarch64-unknown-linux-gnu36! AARCH64: cortex-a7337! AARCH64: cortex-a7538 39! The footer displayed contains a reference to clang. This should be changed to40! 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.42 43! CHECK: Use -mcpu or -mtune to specify the target's processor.44! CHECK: For example, clang --target=aarch64-unknown-linux-gnu45 46 end program47