From: Ziang Wan Date: Fri, 14 Jun 2019 23:34:40 +0000 (+0000) Subject: Fixed the --print-supported-cpus test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d054f34297ca09b81757cfad86cd8aab45aac9f;p=clang Fixed the --print-supported-cpus test Add constraints for the test that require specific backend targets to be registered. Remove trailing whitespace in the doc. Differential Revision: https://reviews.llvm.org/D63105 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363475 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/CommandGuide/clang.rst b/docs/CommandGuide/clang.rst index 1ed11c77ad..f511022dd7 100644 --- a/docs/CommandGuide/clang.rst +++ b/docs/CommandGuide/clang.rst @@ -326,8 +326,8 @@ number of cross compilers, or may only support a native target. .. option:: --print-supported-cpus - Print out a list of supported processors for the given target (specified - through --target= or -arch ). If no target is + Print out a list of supported processors for the given target (specified + through --target= or -arch ). If no target is specified, the system default target will be used. .. option:: -march= diff --git a/test/Driver/print-supported-cpus.c b/test/Driver/print-supported-cpus.c index a6b9a71c62..b368a31dd6 100644 --- a/test/Driver/print-supported-cpus.c +++ b/test/Driver/print-supported-cpus.c @@ -1,5 +1,6 @@ // Test that the --print-supported-cpus flag works +// REQUIRES: x86-registered-target // RUN: %clang --target=x86_64-unknown-linux-gnu \ // RUN: --print-supported-cpus 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-X86 @@ -7,6 +8,7 @@ // CHECK-X86: corei7 // CHECK-X86: Use -mcpu or -mtune to specify the target's processor. +// REQUIRES: arm-registered-target // RUN: %clang --target=arm-unknown-linux-android \ // RUN: --print-supported-cpus 2>&1 \ // RUN: | FileCheck %s --check-prefix=CHECK-ARM