r363475 - Fixed the --print-supported-cpus test

Ziang Wan via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 14 16:34:41 PDT 2019


Author: ziangwan725
Date: Fri Jun 14 16:34:40 2019
New Revision: 363475

URL: http://llvm.org/viewvc/llvm-project?rev=363475&view=rev
Log:
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

Modified:
    cfe/trunk/docs/CommandGuide/clang.rst
    cfe/trunk/test/Driver/print-supported-cpus.c

Modified: cfe/trunk/docs/CommandGuide/clang.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/CommandGuide/clang.rst?rev=363475&r1=363474&r2=363475&view=diff
==============================================================================
--- cfe/trunk/docs/CommandGuide/clang.rst (original)
+++ cfe/trunk/docs/CommandGuide/clang.rst Fri Jun 14 16:34:40 2019
@@ -326,8 +326,8 @@ number of cross compilers, or may only s
 
 .. 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>

Modified: cfe/trunk/test/Driver/print-supported-cpus.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/print-supported-cpus.c?rev=363475&r1=363474&r2=363475&view=diff
==============================================================================
--- cfe/trunk/test/Driver/print-supported-cpus.c (original)
+++ cfe/trunk/test/Driver/print-supported-cpus.c Fri Jun 14 16:34:40 2019
@@ -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




More information about the cfe-commits mailing list