Skip to content

Commit fe54378

Browse files
Make stricter rule for mcpu native test
1 parent 5c68994 commit fe54378

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/test/Driver/aarch64-mcpu-native.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: aarch64-registered-target,system-linux,host-target-compatible
1+
// REQUIRES: aarch64-registered-target,system-linux,aarch64-host
22
// RUN: export LLVM_CPUINFO=%S/Inputs/cpunative/neoverse-v2
33
// RUN: %clang --target=aarch64 --print-enabled-extensions -mcpu=native | FileCheck --strict-whitespace --check-prefix=CHECK-FEAT-NV2 --implicit-check-not=FEAT_ %s
44

clang/test/lit.cfg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ def have_host_clang_repl_cuda():
211211
config.substitutions.append(("%host_cxx", config.host_cxx))
212212

213213
# Determine whether the test target is compatible with execution on the host.
214-
if config.host_arch in config.target_triple:
215-
config.available_features.add("host-target-compatible")
214+
if "aarch64" in config.host_arch:
215+
config.available_features.add("aarch64-host")
216216

217217
# Plugins (loadable modules)
218218
if config.has_plugins and config.llvm_plugin_ext:

0 commit comments

Comments
 (0)