]> granicus.if.org Git - clang/commitdiff
Fixed the --print-supported-cpus test
authorZiang Wan <ziangw2@illinois.edu>
Fri, 14 Jun 2019 23:34:40 +0000 (23:34 +0000)
committerZiang Wan <ziangw2@illinois.edu>
Fri, 14 Jun 2019 23:34:40 +0000 (23:34 +0000)
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

docs/CommandGuide/clang.rst
test/Driver/print-supported-cpus.c

index 1ed11c77ad0676e3650391cb0dc8f390d4b2c09d..f511022dd77ef5aafbd20720f5cee5ab85dce831 100644 (file)
@@ -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=<architecture> or -arch <architecture>). If no target is 
+  Print out a list of supported processors for the given target (specified
+  through --target=<architecture> or -arch <architecture>). If no target is
   specified, the system default target will be used.
 
 .. option:: -march=<cpu>
index a6b9a71c62777376aa85e999a9ae556bc2c9b375..b368a31dd615f4f8e74074d787ef6ba20a4b7da8 100644 (file)
@@ -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