From 12949c952c4fbad776a860c003ccf176973278a0 Mon Sep 17 00:00:00 2001 From: Paul T Robinson Date: Mon, 3 Jun 2024 06:32:15 -0700 Subject: [PATCH] [Driver] Remove a bunch of unnecessary REQUIRES constraints (#94055) Removed foo-registered-target constraints from a bunch of tests, because mostly the driver doesn't need to have a target availabile. I ran check-clang-driver using a build with only the XCore target, and these all passed. There are ~50 tests that still have foo-registered-target, and it looks like most of them are either doing codegen when they don't need to, or don't really belong in the Driver tests. But that's a task for another day. --- clang/test/Driver/aarch64-outliner.c | 1 - clang/test/Driver/amdgcn-gz-options.cl | 2 +- clang/test/Driver/amdgpu-hip-system-arch.c | 2 -- clang/test/Driver/amdgpu-invalid-target-id.s | 3 --- clang/test/Driver/amdgpu-macros.cl | 1 - clang/test/Driver/amdgpu-openmp-system-arch-fail.c | 2 -- clang/test/Driver/amdgpu-openmp-toolchain.c | 2 -- clang/test/Driver/arm-float-abi-runtime-path.c | 2 -- clang/test/Driver/arm-float-abi.c | 1 - clang/test/Driver/arm-machine-outliner.c | 1 - clang/test/Driver/cl-options.cu | 3 --- clang/test/Driver/clang-offload-bundler-zlib.c | 1 - clang/test/Driver/clang-offload-bundler-zstd.c | 1 - clang/test/Driver/compress-noias.c | 1 - clang/test/Driver/cuda-arch-translation.cu | 3 --- clang/test/Driver/cuda-bad-arch.cu | 3 --- clang/test/Driver/cuda-bail-out.cu | 3 --- clang/test/Driver/cuda-bindings.cu | 3 --- clang/test/Driver/cuda-constructor-alias.cu | 3 --- clang/test/Driver/cuda-cross-compiling.c | 2 -- clang/test/Driver/cuda-detect-path.cu | 2 -- clang/test/Driver/cuda-detect.cu | 3 --- clang/test/Driver/cuda-external-tools.cu | 3 --- clang/test/Driver/cuda-macosx.cu | 3 --- clang/test/Driver/cuda-march.cu | 3 --- clang/test/Driver/cuda-omp-unsupported-debug-options.cu | 2 -- clang/test/Driver/cuda-openmp-driver.cu | 3 --- clang/test/Driver/cuda-options.cu | 2 -- clang/test/Driver/cuda-output-asm.cu | 3 --- clang/test/Driver/cuda-phases.cu | 3 --- clang/test/Driver/cuda-ptxas-path.cu | 3 --- clang/test/Driver/cuda-version-check.cu | 3 --- clang/test/Driver/cuda-windows.cu | 3 --- clang/test/Driver/driverkit-arm64.c | 1 - clang/test/Driver/driverkit-arm64e.c | 1 - clang/test/Driver/driverkit-cplusplus.cpp | 1 - clang/test/Driver/driverkit-exceptions.cpp | 1 - clang/test/Driver/driverkit-path.c | 1 - clang/test/Driver/driverkit-rtti.cpp | 1 - clang/test/Driver/driverkit-target-cpu.c | 1 - clang/test/Driver/dwarf-target-version-clamp.cu | 3 --- clang/test/Driver/elfiamcu-header-search.c | 2 -- clang/test/Driver/global-isel.c | 2 -- clang/test/Driver/gpu-libc-headers.c | 3 --- clang/test/Driver/hexagon-toolchain-elf.c | 1 - clang/test/Driver/hip-autolink.hip | 3 --- clang/test/Driver/hip-binding.hip | 3 --- clang/test/Driver/hip-code-object-version.hip | 3 --- clang/test/Driver/hip-cuid-hash.hip | 3 --- clang/test/Driver/hip-cuid.hip | 3 --- clang/test/Driver/hip-default-gpu-arch.hip | 3 --- clang/test/Driver/hip-device-compile.hip | 3 --- clang/test/Driver/hip-device-libs.hip | 3 --- clang/test/Driver/hip-fpie-option.hip | 2 +- clang/test/Driver/hip-gsplit-dwarf-options.hip | 2 +- clang/test/Driver/hip-gz-options.hip | 2 +- clang/test/Driver/hip-host-cpu-features.hip | 3 --- clang/test/Driver/hip-include-path.hip | 2 -- clang/test/Driver/hip-inputs.hip | 3 --- clang/test/Driver/hip-invalid-target-id.hip | 3 --- clang/test/Driver/hip-launch-api.hip | 3 --- clang/test/Driver/hip-link-bc-to-bc.hip | 2 -- clang/test/Driver/hip-link-bundle-archive.hip | 2 -- clang/test/Driver/hip-link-save-temps.hip | 3 --- clang/test/Driver/hip-link-static-library.hip | 3 --- clang/test/Driver/hip-no-device-libs.hip | 3 --- clang/test/Driver/hip-offload-arch.hip | 2 -- clang/test/Driver/hip-offload-compress-zlib.hip | 2 -- clang/test/Driver/hip-offload-compress-zstd.hip | 2 -- clang/test/Driver/hip-options.hip | 5 +---- clang/test/Driver/hip-output-file-name.hip | 3 --- clang/test/Driver/hip-phases.hip | 3 --- clang/test/Driver/hip-printf.hip | 3 --- clang/test/Driver/hip-rdc-device-only.hip | 3 --- clang/test/Driver/hip-sanitize-options.hip | 2 -- clang/test/Driver/hip-save-temps.hip | 3 --- clang/test/Driver/hip-std.hip | 3 --- clang/test/Driver/hip-syntax-only.hip | 3 --- clang/test/Driver/hip-target-id.hip | 3 --- clang/test/Driver/hip-toolchain-device-only.hip | 2 -- clang/test/Driver/hip-toolchain-dwarf.hip | 3 --- clang/test/Driver/hip-toolchain-features.hip | 3 --- clang/test/Driver/hip-toolchain-mllvm.hip | 3 --- clang/test/Driver/hip-toolchain-no-rdc.hip | 3 --- clang/test/Driver/hip-toolchain-opt.hip | 3 --- clang/test/Driver/hip-toolchain-rdc-separate.hip | 3 --- clang/test/Driver/hip-toolchain-rdc-static-lib.hip | 3 --- clang/test/Driver/hip-toolchain-rdc.hip | 3 --- clang/test/Driver/hip-unbundle-preproc.hipi | 2 -- clang/test/Driver/hip-wavefront-size.hip | 2 -- clang/test/Driver/hip-windows-filename.hip | 2 +- clang/test/Driver/hipspv-device-libs.hip | 1 - clang/test/Driver/hipspv-pass-plugin.hip | 1 - clang/test/Driver/hipspv-toolchain-rdc.hip | 1 - clang/test/Driver/hipspv-toolchain.hip | 1 - clang/test/Driver/indirect-tls-seg-refs.c | 2 -- clang/test/Driver/invalid-offload-options.cpp | 1 - clang/test/Driver/invalid-target-id.cl | 3 --- clang/test/Driver/lto.cu | 3 --- clang/test/Driver/m68k-features.cpp | 1 - clang/test/Driver/mbackchain.c | 1 - clang/test/Driver/mips-abi.c | 2 -- clang/test/Driver/mips-abicalls-warning.c | 1 - clang/test/Driver/mips-cs.cpp | 2 -- clang/test/Driver/mips-fsf.cpp | 2 -- clang/test/Driver/mips-gpopt-warning.c | 1 - clang/test/Driver/mips-img-v2.cpp | 2 -- clang/test/Driver/mips-img.cpp | 2 -- clang/test/Driver/mips-indirect-branch.c | 1 - clang/test/Driver/mips-mti-linux.c | 1 - clang/test/Driver/msan.c | 2 -- clang/test/Driver/nvptx-cuda-system-arch.c | 2 -- clang/test/Driver/openmp-offload-headers.c | 3 --- clang/test/Driver/openmp-offload-infer.c | 4 ---- clang/test/Driver/openmp-offload-jit.c | 4 ---- clang/test/Driver/openmp-offload.c | 4 ---- clang/test/Driver/openmp-system-arch.c | 3 --- clang/test/Driver/ppc-dependent-options.cpp | 1 - clang/test/Driver/ppc-float-abi-warning.cpp | 1 - clang/test/Driver/ppc-unsupported.c | 1 - clang/test/Driver/riscv32-toolchain-extra.c | 2 +- clang/test/Driver/riscv64-toolchain-extra.c | 2 +- clang/test/Driver/rocm-detect.cl | 2 -- clang/test/Driver/rocm-detect.hip | 2 -- clang/test/Driver/rocm-device-libs.cl | 1 - clang/test/Driver/save-temps.c | 3 --- clang/test/Driver/sysroot.c | 2 -- clang/test/Driver/target-id-macros.cl | 3 --- clang/test/Driver/target-id.cl | 3 --- clang/test/Driver/thinlto.cu | 3 --- clang/test/Driver/tsan.c | 2 -- clang/test/Driver/ve-toolchain.c | 1 - clang/test/Driver/ve-toolchain.cpp | 1 - 133 files changed, 8 insertions(+), 293 deletions(-) diff --git a/clang/test/Driver/aarch64-outliner.c b/clang/test/Driver/aarch64-outliner.c index 06e5de11ec49ec..c5d28d121513f2 100644 --- a/clang/test/Driver/aarch64-outliner.c +++ b/clang/test/Driver/aarch64-outliner.c @@ -1,4 +1,3 @@ -// REQUIRES: aarch64-registered-target // RUN: %clang --target=aarch64 -moutline -S %s -### 2>&1 | FileCheck %s -check-prefix=ON // RUN: %clang --target=aarch64_be -moutline -S %s -### 2>&1 | FileCheck %s -check-prefix=ON // ON: "-mllvm" "-enable-machine-outliner" diff --git a/clang/test/Driver/amdgcn-gz-options.cl b/clang/test/Driver/amdgcn-gz-options.cl index 8ffd58af509dbe..ece3ac17e80187 100644 --- a/clang/test/Driver/amdgcn-gz-options.cl +++ b/clang/test/Driver/amdgcn-gz-options.cl @@ -1,4 +1,4 @@ -// REQUIRES: zlib, amdgpu-registered-target +// REQUIRES: zlib // RUN: %clang -### -target amdgcn-amd-amdhsa -gz=none -x assembler %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_NONE %s // RUN: %clang -### -target amdgcn-amd-amdhsa -gz=none -nogpulib %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_NONE %s diff --git a/clang/test/Driver/amdgpu-hip-system-arch.c b/clang/test/Driver/amdgpu-hip-system-arch.c index 6b2955c274135b..a46077b38fac08 100644 --- a/clang/test/Driver/amdgpu-hip-system-arch.c +++ b/clang/test/Driver/amdgpu-hip-system-arch.c @@ -1,6 +1,4 @@ // REQUIRES: system-linux -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target // REQUIRES: shell // RUN: mkdir -p %t diff --git a/clang/test/Driver/amdgpu-invalid-target-id.s b/clang/test/Driver/amdgpu-invalid-target-id.s index 5d4b188f9ef1d3..7d1d8e47723386 100644 --- a/clang/test/Driver/amdgpu-invalid-target-id.s +++ b/clang/test/Driver/amdgpu-invalid-target-id.s @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: not %clang -target amdgcn-amd-amdhsa \ // RUN: -mcpu=gfx908xnack -nostdlib \ // RUN: %s 2>&1 | FileCheck -check-prefix=NOPLUS %s diff --git a/clang/test/Driver/amdgpu-macros.cl b/clang/test/Driver/amdgpu-macros.cl index 3dbe10dfcf1dcf..a878a7decee95e 100644 --- a/clang/test/Driver/amdgpu-macros.cl +++ b/clang/test/Driver/amdgpu-macros.cl @@ -1,4 +1,3 @@ -// REQUIRES: amdgpu-registered-target // Check that appropriate macros are defined for every supported AMDGPU // "-target" and "-mcpu" options. diff --git a/clang/test/Driver/amdgpu-openmp-system-arch-fail.c b/clang/test/Driver/amdgpu-openmp-system-arch-fail.c index f760683e47611d..85c82e4598cb10 100644 --- a/clang/test/Driver/amdgpu-openmp-system-arch-fail.c +++ b/clang/test/Driver/amdgpu-openmp-system-arch-fail.c @@ -1,6 +1,4 @@ // REQUIRES: system-linux -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target // REQUIRES: shell // RUN: mkdir -p %t diff --git a/clang/test/Driver/amdgpu-openmp-toolchain.c b/clang/test/Driver/amdgpu-openmp-toolchain.c index 849afb871ddbfc..ef58c2c4e3f3ae 100644 --- a/clang/test/Driver/amdgpu-openmp-toolchain.c +++ b/clang/test/Driver/amdgpu-openmp-toolchain.c @@ -1,5 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target // RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \ // RUN: -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx906 --libomptarget-amdgpu-bc-path=%S/Inputs/hip_dev_lib -nogpulib %s 2>&1 \ // RUN: | FileCheck %s diff --git a/clang/test/Driver/arm-float-abi-runtime-path.c b/clang/test/Driver/arm-float-abi-runtime-path.c index d4a48601a04b45..029fe19690f9b6 100644 --- a/clang/test/Driver/arm-float-abi-runtime-path.c +++ b/clang/test/Driver/arm-float-abi-runtime-path.c @@ -1,8 +1,6 @@ /// Check that libraries built with the per target runtime directory layout /// are selected correctly when using variations of Arm triples. -// REQUIRES: arm-registered-target - // RUN: %clang %s --target=arm-unknown-linux-gnueabihf -print-runtime-dir \ // RUN: -resource-dir=%S/Inputs/arm_float_abi_runtime_path 2>&1 | FileCheck -check-prefix=ARMHF %s /// "armv7l" should be normalised to just "arm". diff --git a/clang/test/Driver/arm-float-abi.c b/clang/test/Driver/arm-float-abi.c index 806ef0fbd93e63..35bd71415774c3 100644 --- a/clang/test/Driver/arm-float-abi.c +++ b/clang/test/Driver/arm-float-abi.c @@ -1,4 +1,3 @@ -// REQUIRES: arm-registered-target // RUN: not %clang %s -target armv7-apple-ios -mfloat-abi=hard 2>&1 | FileCheck -check-prefix=ARMV7-ERROR %s // RUN: %clang %s -target armv7-apple-ios -mfloat-abi=softfp -### 2>&1 | FileCheck -check-prefix=NOERROR %s // RUN: %clang %s -arch armv7 -target thumbv7-apple-darwin-eabi -mfloat-abi=hard -### 2>&1 | FileCheck -check-prefix=NOERROR %s diff --git a/clang/test/Driver/arm-machine-outliner.c b/clang/test/Driver/arm-machine-outliner.c index 6ac82838323a96..a1e705cb60a1bb 100644 --- a/clang/test/Driver/arm-machine-outliner.c +++ b/clang/test/Driver/arm-machine-outliner.c @@ -1,4 +1,3 @@ -// REQUIRES: arm-registered-target // RUN: %clang -target armv7-linux-gnueabihf -moutline -c %s -### 2>&1 | FileCheck %s -check-prefix=ON // ON: "-mllvm" "-enable-machine-outliner" // RUN: %clang -target armv7-linux-gnueabihf -flto -moutline %s -### 2>&1 | FileCheck %s -check-prefix=ON-LTO diff --git a/clang/test/Driver/cl-options.cu b/clang/test/Driver/cl-options.cu index 8b0c2ba421b362..b241ec6672d851 100644 --- a/clang/test/Driver/cl-options.cu +++ b/clang/test/Driver/cl-options.cu @@ -3,9 +3,6 @@ // Note: %s must be preceded by --, otherwise it may be interpreted as a // command-line option, e.g. on Mac where %s is commonly under /Users. -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target - // -stack-protector should not be passed to device-side CUDA compilation // RUN: not %clang_cl -### -nocudalib -nocudainc -- %s 2>&1 | FileCheck -check-prefix=GS-default %s // GS-default: "-cc1" "-triple" "nvptx{{(64)?}}-nvidia-cuda" diff --git a/clang/test/Driver/clang-offload-bundler-zlib.c b/clang/test/Driver/clang-offload-bundler-zlib.c index fff7a0f5456860..7e5857296756cb 100644 --- a/clang/test/Driver/clang-offload-bundler-zlib.c +++ b/clang/test/Driver/clang-offload-bundler-zlib.c @@ -1,5 +1,4 @@ // REQUIRES: zlib && !zstd -// REQUIRES: x86-registered-target // UNSUPPORTED: target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}} // diff --git a/clang/test/Driver/clang-offload-bundler-zstd.c b/clang/test/Driver/clang-offload-bundler-zstd.c index d01d9659a68dd3..667d9554daec71 100644 --- a/clang/test/Driver/clang-offload-bundler-zstd.c +++ b/clang/test/Driver/clang-offload-bundler-zstd.c @@ -1,5 +1,4 @@ // REQUIRES: zstd -// REQUIRES: x86-registered-target // UNSUPPORTED: target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}} // diff --git a/clang/test/Driver/compress-noias.c b/clang/test/Driver/compress-noias.c index 24bfa18c8d7041..472b6327eff4cf 100644 --- a/clang/test/Driver/compress-noias.c +++ b/clang/test/Driver/compress-noias.c @@ -1,5 +1,4 @@ // REQUIRES: zlib -// REQUIRES: x86-registered-target // RUN: %clang -### -target i686-unknown-linux-gnu -fno-integrated-as -Wa,-compress-debug-sections -c %s 2>&1 | FileCheck -check-prefix CHECK-_COMPRESS_DEBUG_SECTIONS %s // CHECK-_COMPRESS_DEBUG_SECTIONS: "-compress-debug-sections" diff --git a/clang/test/Driver/cuda-arch-translation.cu b/clang/test/Driver/cuda-arch-translation.cu index f37964d87c66a1..ff97f2dbda6c57 100644 --- a/clang/test/Driver/cuda-arch-translation.cu +++ b/clang/test/Driver/cuda-arch-translation.cu @@ -1,8 +1,5 @@ // Tests that "sm_XX" gets correctly converted to "compute_YY" when we invoke // fatbinary. -// -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target // RUN: %clang -### --target=x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda %s 2>&1 \ // RUN: | FileCheck -check-prefixes=CUDA,SM20 %s diff --git a/clang/test/Driver/cuda-bad-arch.cu b/clang/test/Driver/cuda-bad-arch.cu index 35a56a8bef0f0d..8c8c5c3401329d 100644 --- a/clang/test/Driver/cuda-bad-arch.cu +++ b/clang/test/Driver/cuda-bad-arch.cu @@ -1,7 +1,4 @@ // Checks errors generated by passing a bad value for --cuda-gpu-arch. -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target -// REQUIRES: amdgpu-registered-target // RUN: not %clang -### --target=x86_64-linux-gnu --cuda-gpu-arch=compute_20 -c --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda %s 2>&1 \ // RUN: | FileCheck -check-prefix BAD %s diff --git a/clang/test/Driver/cuda-bail-out.cu b/clang/test/Driver/cuda-bail-out.cu index ec34711e51ae8c..6f9a877e3c0f77 100644 --- a/clang/test/Driver/cuda-bail-out.cu +++ b/clang/test/Driver/cuda-bail-out.cu @@ -1,8 +1,5 @@ // Test clang driver bails out after one error during CUDA compilation. -// REQUIRES: powerpc-registered-target -// REQUIRES: nvptx-registered-target - #ifdef FORCE_ERROR #error compilation failed #endif diff --git a/clang/test/Driver/cuda-bindings.cu b/clang/test/Driver/cuda-bindings.cu index e130e08f20152a..8ee1884936c069 100644 --- a/clang/test/Driver/cuda-bindings.cu +++ b/clang/test/Driver/cuda-bindings.cu @@ -9,9 +9,6 @@ // way. Instead we check whether we've generated a permanent name on // device side, which appends '-device-cuda-' suffix. -// REQUIRES: powerpc-registered-target -// REQUIRES: nvptx-registered-target - // // Test single gpu architecture with complete compilation. // No intermediary device files should have "-device-cuda..." in the name. diff --git a/clang/test/Driver/cuda-constructor-alias.cu b/clang/test/Driver/cuda-constructor-alias.cu index 6639420efa3e69..b7867e095f27fa 100644 --- a/clang/test/Driver/cuda-constructor-alias.cu +++ b/clang/test/Driver/cuda-constructor-alias.cu @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target - // Check that we don't pass -mconstructor-aliases to CUDA device-side // compilation, but we do pass it to host-side compilation. diff --git a/clang/test/Driver/cuda-cross-compiling.c b/clang/test/Driver/cuda-cross-compiling.c index 203bc063a0106c..1dc4520f485db5 100644 --- a/clang/test/Driver/cuda-cross-compiling.c +++ b/clang/test/Driver/cuda-cross-compiling.c @@ -1,8 +1,6 @@ // Tests the driver when targeting the NVPTX architecture directly without a // host toolchain to perform CUDA mappings. -// REQUIRES: nvptx-registered-target - // // Test the generated phases when targeting NVPTX. // diff --git a/clang/test/Driver/cuda-detect-path.cu b/clang/test/Driver/cuda-detect-path.cu index 95b9b288a8d7cc..8d249bd4c96d5f 100644 --- a/clang/test/Driver/cuda-detect-path.cu +++ b/clang/test/Driver/cuda-detect-path.cu @@ -1,5 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target // This tests uses the PATH environment variable. // REQUIRES: !system-windows diff --git a/clang/test/Driver/cuda-detect.cu b/clang/test/Driver/cuda-detect.cu index 67af470018ff96..23b6ba2fcc09d9 100644 --- a/clang/test/Driver/cuda-detect.cu +++ b/clang/test/Driver/cuda-detect.cu @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target -// // Check that we properly detect CUDA installation. // RUN: %clang -v --target=i386-unknown-linux \ // RUN: --sysroot=%S/no-cuda-there --cuda-path-ignore-env 2>&1 | FileCheck %s -check-prefix NOCUDA diff --git a/clang/test/Driver/cuda-external-tools.cu b/clang/test/Driver/cuda-external-tools.cu index 9ada0cf8595dc6..0633c7bceac056 100644 --- a/clang/test/Driver/cuda-external-tools.cu +++ b/clang/test/Driver/cuda-external-tools.cu @@ -1,8 +1,5 @@ // Tests that ptxas and fatbinary are invoked correctly during CUDA // compilation. -// -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target // Regular compiles with -O{0,1,2,3,4,fast}. -O4 and -Ofast map to ptxas O3. // RUN: %clang -### --target=x86_64-linux-gnu -O0 -c %s 2>&1 \ diff --git a/clang/test/Driver/cuda-macosx.cu b/clang/test/Driver/cuda-macosx.cu index d01299f9f7d274..d26dd17ff950a3 100644 --- a/clang/test/Driver/cuda-macosx.cu +++ b/clang/test/Driver/cuda-macosx.cu @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target -// // RUN: %clang -v --target=i386-apple-macosx \ // RUN: --sysroot=%S/Inputs/CUDA-macosx --cuda-path-ignore-env 2>&1 | FileCheck %s diff --git a/clang/test/Driver/cuda-march.cu b/clang/test/Driver/cuda-march.cu index 25fd6f3a10f2a2..2dbb9cdf6f5897 100644 --- a/clang/test/Driver/cuda-march.cu +++ b/clang/test/Driver/cuda-march.cu @@ -1,9 +1,6 @@ // Checks that cuda compilation does the right thing when passed -march. // (Specifically, we want to pass it to host compilation, but not to device // compilation or ptxas!) -// -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target // RUN: %clang -### --target=x86_64-linux-gnu -c \ // RUN: -nogpulib -nogpuinc -march=haswell %s 2>&1 | FileCheck %s diff --git a/clang/test/Driver/cuda-omp-unsupported-debug-options.cu b/clang/test/Driver/cuda-omp-unsupported-debug-options.cu index 8e1bb2e496c749..cc6a538d7a7baf 100644 --- a/clang/test/Driver/cuda-omp-unsupported-debug-options.cu +++ b/clang/test/Driver/cuda-omp-unsupported-debug-options.cu @@ -1,5 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target // REQUIRES: zlib // RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=sm_52 -nogpulib -nogpuinc -c %s -g -gz 2>&1 \ diff --git a/clang/test/Driver/cuda-openmp-driver.cu b/clang/test/Driver/cuda-openmp-driver.cu index 8f2d8587e2dadf..a1ca987eb9d221 100644 --- a/clang/test/Driver/cuda-openmp-driver.cu +++ b/clang/test/Driver/cuda-openmp-driver.cu @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target - // RUN: %clang -### -target x86_64-linux-gnu -nocudalib -ccc-print-bindings -fgpu-rdc \ // RUN: --offload-new-driver --offload-arch=sm_35 --offload-arch=sm_70 %s 2>&1 \ // RUN: | FileCheck -check-prefix BINDINGS %s diff --git a/clang/test/Driver/cuda-options.cu b/clang/test/Driver/cuda-options.cu index 8999a6618fe1fa..67facf77f6c68a 100644 --- a/clang/test/Driver/cuda-options.cu +++ b/clang/test/Driver/cuda-options.cu @@ -1,6 +1,4 @@ // Tests CUDA compilation pipeline construction in Driver. -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target // Simple compilation case. Compile device-side to PTX assembly and make sure // we use it on the host side. diff --git a/clang/test/Driver/cuda-output-asm.cu b/clang/test/Driver/cuda-output-asm.cu index ed1aeadc243a5e..6b944d18917247 100644 --- a/clang/test/Driver/cuda-output-asm.cu +++ b/clang/test/Driver/cuda-output-asm.cu @@ -1,8 +1,5 @@ // Tests CUDA compilation with -S and -emit-llvm. -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target - // RUN: %clang -### -S --target=x86_64-linux-gnu --cuda-gpu-arch=sm_20 --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda %s 2>&1 \ // RUN: | FileCheck -check-prefix HOST -check-prefix SM20 %s // RUN: %clang -### -S --target=x86_64-linux-gnu --cuda-host-only -o foo.s --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda %s 2>&1 \ diff --git a/clang/test/Driver/cuda-phases.cu b/clang/test/Driver/cuda-phases.cu index 85b1a550524d21..8b91a1d5a7fcf8 100644 --- a/clang/test/Driver/cuda-phases.cu +++ b/clang/test/Driver/cuda-phases.cu @@ -4,9 +4,6 @@ // - Host/device-only compilation; // - User-requested final phase - binary or assembly. -// REQUIRES: powerpc-registered-target -// REQUIRES: nvptx-registered-target -// // Test single gpu architecture with complete compilation. // // Test CUDA NVPTX phases. diff --git a/clang/test/Driver/cuda-ptxas-path.cu b/clang/test/Driver/cuda-ptxas-path.cu index 87b19d9d4d6163..f36dcc94558f1d 100644 --- a/clang/test/Driver/cuda-ptxas-path.cu +++ b/clang/test/Driver/cuda-ptxas-path.cu @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target - // RUN: %clang -### --target=i386-unknown-linux \ // RUN: --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda \ // RUN: --ptxas-path=/some/path/to/ptxas %s 2>&1 \ diff --git a/clang/test/Driver/cuda-version-check.cu b/clang/test/Driver/cuda-version-check.cu index dc313e928c7d27..9eceb928ffabde 100644 --- a/clang/test/Driver/cuda-version-check.cu +++ b/clang/test/Driver/cuda-version-check.cu @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target - // RUN: not %clang --target=x86_64-linux -v -### --cuda-gpu-arch=sm_20 --cuda-path=%S/Inputs/CUDA/usr/local/cuda 2>&1 %s | \ // RUN: FileCheck %s --check-prefix=OK // RUN: %clang --target=x86_64-linux -v -### --cuda-gpu-arch=sm_20 --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda 2>&1 %s | \ diff --git a/clang/test/Driver/cuda-windows.cu b/clang/test/Driver/cuda-windows.cu index 02d6a55808d1c6..4459e809072d91 100644 --- a/clang/test/Driver/cuda-windows.cu +++ b/clang/test/Driver/cuda-windows.cu @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target -// // RUN: %clang -v --target=i386-pc-windows-msvc \ // RUN: --sysroot=%S/Inputs/CUDA-windows 2>&1 %s -### | FileCheck %s // RUN: %clang -v --target=i386-pc-windows-mingw32 \ diff --git a/clang/test/Driver/driverkit-arm64.c b/clang/test/Driver/driverkit-arm64.c index 125df688976e6f..1f60c0aec7dd3f 100644 --- a/clang/test/Driver/driverkit-arm64.c +++ b/clang/test/Driver/driverkit-arm64.c @@ -1,4 +1,3 @@ -// REQUIRES: aarch64-registered-target // RUN: %clang %s -target arm64-apple-driverkit -### 2>&1 | FileCheck %s // CHECK: "-target-cpu" "apple-a7" diff --git a/clang/test/Driver/driverkit-arm64e.c b/clang/test/Driver/driverkit-arm64e.c index d9ace1ea9e1372..29f90bdc99ec03 100644 --- a/clang/test/Driver/driverkit-arm64e.c +++ b/clang/test/Driver/driverkit-arm64e.c @@ -1,4 +1,3 @@ -// REQUIRES: aarch64-registered-target // RUN: %clang %s -target arm64e-apple-driverkit -### 2>&1 | FileCheck %s // CHECK: "-target-cpu" "apple-a12" diff --git a/clang/test/Driver/driverkit-cplusplus.cpp b/clang/test/Driver/driverkit-cplusplus.cpp index 9f2e49f890316d..717a95e6b98257 100644 --- a/clang/test/Driver/driverkit-cplusplus.cpp +++ b/clang/test/Driver/driverkit-cplusplus.cpp @@ -1,4 +1,3 @@ -// REQUIRES: x86-registered-target // RUN: %clang %s -target x86_64-apple-driverkit19.0 -fsyntax-only #if __cplusplus != 201703L diff --git a/clang/test/Driver/driverkit-exceptions.cpp b/clang/test/Driver/driverkit-exceptions.cpp index 76a39770338e66..2d06d023242bb0 100644 --- a/clang/test/Driver/driverkit-exceptions.cpp +++ b/clang/test/Driver/driverkit-exceptions.cpp @@ -1,4 +1,3 @@ -// REQUIRES: x86-registered-target // RUN: %clang %s -target x86_64-apple-driverkit19.0 -### 2>&1 | FileCheck %s -check-prefix=DEFAULT // RUN: %clang %s -target x86_64-apple-driverkit19.0 -fexceptions -### 2>&1 | FileCheck %s -check-prefix=USERPROVIDED diff --git a/clang/test/Driver/driverkit-path.c b/clang/test/Driver/driverkit-path.c index 9699b9c01f4e81..3caae382d65bb3 100644 --- a/clang/test/Driver/driverkit-path.c +++ b/clang/test/Driver/driverkit-path.c @@ -1,4 +1,3 @@ -// REQUIRES: x86-registered-target // UNSUPPORTED: system-windows // Windows is unsupported because we use the Unix path separator `\`. diff --git a/clang/test/Driver/driverkit-rtti.cpp b/clang/test/Driver/driverkit-rtti.cpp index 3d94ea09256e7c..6fadc06ea1d1d2 100644 --- a/clang/test/Driver/driverkit-rtti.cpp +++ b/clang/test/Driver/driverkit-rtti.cpp @@ -1,4 +1,3 @@ -// REQUIRES: x86-registered-target // RUN: %clang %s -target x86_64-apple-driverkit19.0 -### 2>&1 | FileCheck %s int main() { return 0; } diff --git a/clang/test/Driver/driverkit-target-cpu.c b/clang/test/Driver/driverkit-target-cpu.c index f69e5edec0c9bf..b1a6232c07351e 100644 --- a/clang/test/Driver/driverkit-target-cpu.c +++ b/clang/test/Driver/driverkit-target-cpu.c @@ -1,4 +1,3 @@ -// REQUIRES: x86-registered-target // RUN: %clang %s -target x86_64-apple-driverkit19.0 -### 2>&1 | FileCheck %s int main() { return 0; } diff --git a/clang/test/Driver/dwarf-target-version-clamp.cu b/clang/test/Driver/dwarf-target-version-clamp.cu index d9dbbe62cfb2fb..910e9cb82a1cc9 100644 --- a/clang/test/Driver/dwarf-target-version-clamp.cu +++ b/clang/test/Driver/dwarf-target-version-clamp.cu @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target - // Verify that DWARF version is properly clamped for nvptx, but not for the host. // RUN: %clang -### --target=x86_64-linux-gnu -nogpulib -nogpuinc -c %s -gdwarf-5 -gembed-source 2>&1 \ // RUN: | FileCheck %s --check-prefix=DWARF-CLAMP diff --git a/clang/test/Driver/elfiamcu-header-search.c b/clang/test/Driver/elfiamcu-header-search.c index d0f147a994c747..f5f31ec24ff4f2 100644 --- a/clang/test/Driver/elfiamcu-header-search.c +++ b/clang/test/Driver/elfiamcu-header-search.c @@ -1,5 +1,3 @@ -// REQUIRES: x86-registered-target - // RUN: %clang -target i386-pc-elfiamcu -c -v -fsyntax-only %s 2>&1 | FileCheck %s // CHECK-NOT: /usr/include // CHECK-NOT: /usr/local/include diff --git a/clang/test/Driver/global-isel.c b/clang/test/Driver/global-isel.c index 66f196b03c1eaf..d176ac71a41a8a 100644 --- a/clang/test/Driver/global-isel.c +++ b/clang/test/Driver/global-isel.c @@ -1,5 +1,3 @@ -// REQUIRES: x86-registered-target,aarch64-registered-target - // RUN: %clang -fglobal-isel -S -### %s 2>&1 | FileCheck --check-prefix=ENABLED %s // RUN: %clang -fno-global-isel -S -### %s 2>&1 | FileCheck --check-prefix=DISABLED %s diff --git a/clang/test/Driver/gpu-libc-headers.c b/clang/test/Driver/gpu-libc-headers.c index 356a401550399d..32a5edb175e61c 100644 --- a/clang/test/Driver/gpu-libc-headers.c +++ b/clang/test/Driver/gpu-libc-headers.c @@ -1,6 +1,3 @@ -// REQUIRES: nvptx-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp --sysroot=./ \ // RUN: -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa --offload-arch=gfx908 \ // RUN: -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-HEADERS diff --git a/clang/test/Driver/hexagon-toolchain-elf.c b/clang/test/Driver/hexagon-toolchain-elf.c index ac921547266c95..716d82bcf316b5 100644 --- a/clang/test/Driver/hexagon-toolchain-elf.c +++ b/clang/test/Driver/hexagon-toolchain-elf.c @@ -532,7 +532,6 @@ // RUN: -ccc-install-dir %S/Inputs/hexagon_tree/Tools/bin \ // RUN: -mcpu=hexagonv60 \ // RUN: -fuse-ld=fake-value-to-ignore-CLANG_DEFAULT_LINKER %s 2>&1 | FileCheck -check-prefix=CHECK381 %s -// REQUIRES: hexagon-registered-target // CHECK381: "-march=hexagon" // CHECK381: "-mcpu=hexagonv60" // ----------------------------------------------------------------------------- diff --git a/clang/test/Driver/hip-autolink.hip b/clang/test/Driver/hip-autolink.hip index bb0e58a186cddc..cce3977375d2e0 100644 --- a/clang/test/Driver/hip-autolink.hip +++ b/clang/test/Driver/hip-autolink.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target -// // RUN: %clang --target=i386-pc-windows-msvc --cuda-gpu-arch=gfx906 -nogpulib -nogpuinc \ // RUN: --cuda-device-only %s -### 2>&1 | FileCheck --check-prefix=DEV %s // RUN: %clang --target=i386-pc-windows-msvc --cuda-gpu-arch=gfx906 -nogpulib -nogpuinc \ diff --git a/clang/test/Driver/hip-binding.hip b/clang/test/Driver/hip-binding.hip index c116ad80a8ad80..57e57194ec87b1 100644 --- a/clang/test/Driver/hip-binding.hip +++ b/clang/test/Driver/hip-binding.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -ccc-print-bindings --target=x86_64-linux-gnu \ // RUN: --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %s \ // RUN: --no-offload-new-driver -c 2>&1 | FileCheck -check-prefix=NRDCS %s diff --git a/clang/test/Driver/hip-code-object-version.hip b/clang/test/Driver/hip-code-object-version.hip index 5b1ded6e740471..9d0afaeaa967d3 100644 --- a/clang/test/Driver/hip-code-object-version.hip +++ b/clang/test/Driver/hip-code-object-version.hip @@ -1,6 +1,3 @@ -// REQUIRES: amdgpu-registered-target - - // Check bundle ID for code object version 4. // RUN: not %clang -### --target=x86_64-linux-gnu \ diff --git a/clang/test/Driver/hip-cuid-hash.hip b/clang/test/Driver/hip-cuid-hash.hip index ef2a32a69c8f43..103a1cbf26d50a 100644 --- a/clang/test/Driver/hip-cuid-hash.hip +++ b/clang/test/Driver/hip-cuid-hash.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // Check CUID generated by hash. // The same CUID is generated for the same file with the same options. diff --git a/clang/test/Driver/hip-cuid.hip b/clang/test/Driver/hip-cuid.hip index ce3d2de3501e25..ed7de782bba5ac 100644 --- a/clang/test/Driver/hip-cuid.hip +++ b/clang/test/Driver/hip-cuid.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // Check invalid -fuse-cuid= option. // RUN: not %clang -### -x hip \ diff --git a/clang/test/Driver/hip-default-gpu-arch.hip b/clang/test/Driver/hip-default-gpu-arch.hip index 0476aa3f99bfa5..d55a3ea151f9ac 100644 --- a/clang/test/Driver/hip-default-gpu-arch.hip +++ b/clang/test/Driver/hip-default-gpu-arch.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### -nogpulib -nogpuinc -c %s 2>&1 | FileCheck %s // CHECK: {{.*}}clang{{.*}}"-target-cpu" "gfx906" diff --git a/clang/test/Driver/hip-device-compile.hip b/clang/test/Driver/hip-device-compile.hip index 74be9c6cf2ee6d..1dfadfe8f65135 100644 --- a/clang/test/Driver/hip-device-compile.hip +++ b/clang/test/Driver/hip-device-compile.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // If -emit-llvm and/or -S is used in device only compilation, // the output should not be bundled, except --gpu-bundle-output // is specified. diff --git a/clang/test/Driver/hip-device-libs.hip b/clang/test/Driver/hip-device-libs.hip index a998db531d6683..97f9f9290f4002 100644 --- a/clang/test/Driver/hip-device-libs.hip +++ b/clang/test/Driver/hip-device-libs.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // Test if oclc_daz_opt_on or if oclc_daz_opt_off is linked depending on // expected denormal mode. diff --git a/clang/test/Driver/hip-fpie-option.hip b/clang/test/Driver/hip-fpie-option.hip index c414828897d07c..426564b67066ef 100644 --- a/clang/test/Driver/hip-fpie-option.hip +++ b/clang/test/Driver/hip-fpie-option.hip @@ -1,4 +1,4 @@ -// REQUIRES: amdgpu-registered-target, default-pie-on-linux +// REQUIRES: default-pie-on-linux // -fPIC and -fPIE only affects host relocation model. // device compilation always uses PIC. diff --git a/clang/test/Driver/hip-gsplit-dwarf-options.hip b/clang/test/Driver/hip-gsplit-dwarf-options.hip index cfd5c5020e6630..8215e8a3308275 100644 --- a/clang/test/Driver/hip-gsplit-dwarf-options.hip +++ b/clang/test/Driver/hip-gsplit-dwarf-options.hip @@ -1,4 +1,4 @@ -// REQUIRES: zlib, amdgpu-registered-target +// REQUIRES: zlib // RUN: %clang -### --target=x86_64-unknown-linux-gnu -c \ // RUN: --offload-arch=gfx906:xnack+ %s -nogpulib -nogpuinc \ diff --git a/clang/test/Driver/hip-gz-options.hip b/clang/test/Driver/hip-gz-options.hip index 8fba391c08b064..7425d5fa847b3f 100644 --- a/clang/test/Driver/hip-gz-options.hip +++ b/clang/test/Driver/hip-gz-options.hip @@ -1,4 +1,4 @@ -// REQUIRES: zlib, amdgpu-registered-target +// REQUIRES: zlib // RUN: %clang -### --target=x86_64-unknown-linux-gnu \ // RUN: --offload-arch=gfx906 %s -nogpulib -nogpuinc \ diff --git a/clang/test/Driver/hip-host-cpu-features.hip b/clang/test/Driver/hip-host-cpu-features.hip index f288d96373bfe3..7318ed2080a9b3 100644 --- a/clang/test/Driver/hip-host-cpu-features.hip +++ b/clang/test/Driver/hip-host-cpu-features.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### -c --target=x86_64-linux-gnu -march=znver2 --cuda-gpu-arch=gfx803 -nogpuinc -nogpulib %s 2>&1 | FileCheck %s -check-prefix=HOSTCPU // RUN: %clang -### -c --target=x86_64-linux-gnu -msse3 --cuda-gpu-arch=gfx803 -nogpuinc -nogpulib %s 2>&1 | FileCheck %s -check-prefix=HOSTSSE3 // RUN: %clang -### -c --target=x86_64-linux-gnu --gpu-use-aux-triple-only -march=znver2 --cuda-gpu-arch=gfx803 -nogpuinc -nogpulib %s 2>&1 | FileCheck %s -check-prefix=NOHOSTCPU diff --git a/clang/test/Driver/hip-include-path.hip b/clang/test/Driver/hip-include-path.hip index 0bb10d2d86d7a2..1b4179e65c0b97 100644 --- a/clang/test/Driver/hip-include-path.hip +++ b/clang/test/Driver/hip-include-path.hip @@ -1,5 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target // REQUIRES: libgcc // UNSUPPORTED: system-windows diff --git a/clang/test/Driver/hip-inputs.hip b/clang/test/Driver/hip-inputs.hip index 1e1bedbfec9709..2d4cc3103c5ecc 100644 --- a/clang/test/Driver/hip-inputs.hip +++ b/clang/test/Driver/hip-inputs.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -ccc-print-phases --target=x86_64-linux-gnu \ // RUN: -x hip --cuda-gpu-arch=gfx803 -c \ // RUN: %S/Inputs/hip_multiple_inputs/a.cu \ diff --git a/clang/test/Driver/hip-invalid-target-id.hip b/clang/test/Driver/hip-invalid-target-id.hip index c74037d9a4d6da..555043facb2a35 100644 --- a/clang/test/Driver/hip-invalid-target-id.hip +++ b/clang/test/Driver/hip-invalid-target-id.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: not %clang -### --target=x86_64-linux-gnu \ // RUN: -x hip --offload-arch=gfx908 \ // RUN: --offload-arch=gfx908xnack \ diff --git a/clang/test/Driver/hip-launch-api.hip b/clang/test/Driver/hip-launch-api.hip index 8b240240bb5747..2b71d292c7d899 100644 --- a/clang/test/Driver/hip-launch-api.hip +++ b/clang/test/Driver/hip-launch-api.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // By default FE assumes -fhip-new-launch-api. // RUN: %clang -### --target=x86_64-unknown-linux-gnu -offload-arch=gfx906 \ diff --git a/clang/test/Driver/hip-link-bc-to-bc.hip b/clang/test/Driver/hip-link-bc-to-bc.hip index 7b232f2656a93d..249e82ae060fed 100644 --- a/clang/test/Driver/hip-link-bc-to-bc.hip +++ b/clang/test/Driver/hip-link-bc-to-bc.hip @@ -1,5 +1,3 @@ -// REQUIRES: x86-registered-target, amdgpu-registered-target - // Check that clang unbundles the two bitcodes and links via llvm-link // RUN: rm -rf %t && mkdir %t // RUN: touch %t/bundle1.bc diff --git a/clang/test/Driver/hip-link-bundle-archive.hip b/clang/test/Driver/hip-link-bundle-archive.hip index cfbf7137226060..0d655245da9b3e 100644 --- a/clang/test/Driver/hip-link-bundle-archive.hip +++ b/clang/test/Driver/hip-link-bundle-archive.hip @@ -1,5 +1,3 @@ -// REQUIRES: x86-registered-target, amdgpu-registered-target - // Check clang unbundle the archive and link them by lld. // If there is a directory which has the same name as the // value of the '-l' option, it should not interfere with diff --git a/clang/test/Driver/hip-link-save-temps.hip b/clang/test/Driver/hip-link-save-temps.hip index e54be63c578b87..5656614626b9cd 100644 --- a/clang/test/Driver/hip-link-save-temps.hip +++ b/clang/test/Driver/hip-link-save-temps.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // -fgpu-rdc link with output // RUN: rm -rf %t && mkdir %t // RUN: touch %t/obj1.o diff --git a/clang/test/Driver/hip-link-static-library.hip b/clang/test/Driver/hip-link-static-library.hip index 3159b5f3984fee..dcdc26af3b36b6 100644 --- a/clang/test/Driver/hip-link-static-library.hip +++ b/clang/test/Driver/hip-link-static-library.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: touch %t.o // RUN: %clang --hip-link -ccc-print-bindings --target=x86_64-linux-gnu \ // RUN: --no-offload-new-driver --emit-static-lib \ diff --git a/clang/test/Driver/hip-no-device-libs.hip b/clang/test/Driver/hip-no-device-libs.hip index 0ae8b8bcc1913a..2dd01bbbe49054 100644 --- a/clang/test/Driver/hip-no-device-libs.hip +++ b/clang/test/Driver/hip-no-device-libs.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### -nogpuinc -nogpulib --target=x86_64-linux-gnu \ // RUN: --cuda-gpu-arch=gfx900 \ // RUN: %S/Inputs/hip_multiple_inputs/b.hip \ diff --git a/clang/test/Driver/hip-offload-arch.hip b/clang/test/Driver/hip-offload-arch.hip index 12b28bd2c89e38..dd65a0e103ec69 100644 --- a/clang/test/Driver/hip-offload-arch.hip +++ b/clang/test/Driver/hip-offload-arch.hip @@ -1,5 +1,3 @@ -// REQUIRES: x86-registered-target, amdgpu-registered-target - // RUN: %clang -### --target=x86_64-linux-gnu \ // RUN: --offload-arch=gfx1030 \ // RUN: --offload-arch=gfx1031 \ diff --git a/clang/test/Driver/hip-offload-compress-zlib.hip b/clang/test/Driver/hip-offload-compress-zlib.hip index c1566c5f192c2d..dc43e73e7ae8ff 100644 --- a/clang/test/Driver/hip-offload-compress-zlib.hip +++ b/clang/test/Driver/hip-offload-compress-zlib.hip @@ -1,6 +1,4 @@ // REQUIRES: zlib && !zstd -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target // Test compress bundled bitcode. diff --git a/clang/test/Driver/hip-offload-compress-zstd.hip b/clang/test/Driver/hip-offload-compress-zstd.hip index ede7d59f113c86..69f28ab22ba609 100644 --- a/clang/test/Driver/hip-offload-compress-zstd.hip +++ b/clang/test/Driver/hip-offload-compress-zstd.hip @@ -1,6 +1,4 @@ // REQUIRES: zstd -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target // Test compress bundled bitcode. diff --git a/clang/test/Driver/hip-options.hip b/clang/test/Driver/hip-options.hip index 2ba9032f16946b..8c13137735fb91 100644 --- a/clang/test/Driver/hip-options.hip +++ b/clang/test/Driver/hip-options.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### -x hip -nogpulib -nogpuinc --gpu-max-threads-per-block=1024 %s 2>&1 | FileCheck %s // Check that there are commands for both host- and device-side compilations. @@ -244,4 +241,4 @@ // RUN: 2>&1 | FileCheck -check-prefix=NO-WARN-ATOMIC %s // NO-WARN-ATOMIC: clang{{.*}} "-triple" "amdgcn-amd-amdhsa" {{.*}} "-Werror=atomic-alignment" {{.*}} "-Wno-error=atomic-alignment" // NO-WARN-ATOMIC-NOT: clang{{.*}} "-triple" "x86_64-unknown-linux-gnu" {{.*}} "-Werror=atomic-alignment" -// NO-WARN-ATOMIC-NOT: clang{{.*}} "-triple" "x86_64-unknown-linux-gnu" {{.*}} "-Wno-error=atomic-alignment" \ No newline at end of file +// NO-WARN-ATOMIC-NOT: clang{{.*}} "-triple" "x86_64-unknown-linux-gnu" {{.*}} "-Wno-error=atomic-alignment" diff --git a/clang/test/Driver/hip-output-file-name.hip b/clang/test/Driver/hip-output-file-name.hip index aca64346e0c475..6a505411b0a470 100644 --- a/clang/test/Driver/hip-output-file-name.hip +++ b/clang/test/Driver/hip-output-file-name.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // Output bundled code objects for combined compilation. // RUN: %clang -### -c --target=x86_64-linux-gnu -fgpu-rdc --no-offload-new-driver \ // RUN: -nogpulib -nogpuinc --offload-arch=gfx803 --offload-arch=gfx900 %s \ diff --git a/clang/test/Driver/hip-phases.hip b/clang/test/Driver/hip-phases.hip index 180ef43022f818..5fd2c0216ccc3a 100644 --- a/clang/test/Driver/hip-phases.hip +++ b/clang/test/Driver/hip-phases.hip @@ -4,9 +4,6 @@ // - Host/device-only compilation; // - User-requested final phase - binary or assembly. -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target -// // Test single gpu architecture with complete compilation. // // RUN: %clang -x hip --target=x86_64-unknown-linux-gnu -ccc-print-phases \ diff --git a/clang/test/Driver/hip-printf.hip b/clang/test/Driver/hip-printf.hip index eb626eda221f55..2e39b19da68f03 100644 --- a/clang/test/Driver/hip-printf.hip +++ b/clang/test/Driver/hip-printf.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### -nogpulib -nogpuinc --target=x86_64-linux-gnu --cuda-gpu-arch=gfx900 \ // RUN: %s 2>&1 | FileCheck %s diff --git a/clang/test/Driver/hip-rdc-device-only.hip b/clang/test/Driver/hip-rdc-device-only.hip index d79cc1febf3d42..72933c9611d89e 100644 --- a/clang/test/Driver/hip-rdc-device-only.hip +++ b/clang/test/Driver/hip-rdc-device-only.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### --target=x86_64-linux-gnu --no-offload-new-driver \ // RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 \ // RUN: -c -nogpuinc -nogpulib --cuda-device-only -fgpu-rdc \ diff --git a/clang/test/Driver/hip-sanitize-options.hip b/clang/test/Driver/hip-sanitize-options.hip index 184889d357a47f..d94cbdacdaeb3a 100644 --- a/clang/test/Driver/hip-sanitize-options.hip +++ b/clang/test/Driver/hip-sanitize-options.hip @@ -1,5 +1,3 @@ -// REQUIRES: x86-registered-target, amdgpu-registered-target - // RUN: %clang -### --target=x86_64-unknown-linux-gnu --offload-arch=gfx900:xnack+ \ // RUN: -fsanitize=address \ // RUN: -nogpuinc --rocm-path=%S/Inputs/rocm \ diff --git a/clang/test/Driver/hip-save-temps.hip b/clang/test/Driver/hip-save-temps.hip index d891b0d9bf627f..6dedfdafb11a13 100644 --- a/clang/test/Driver/hip-save-temps.hip +++ b/clang/test/Driver/hip-save-temps.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // -fno-gpu-rdc without -o with -c // RUN: %clang -### --target=x86_64-linux-gnu -nogpulib -save-temps \ // RUN: -nogpuinc --offload-arch=gfx900 -c %s 2>&1 | \ diff --git a/clang/test/Driver/hip-std.hip b/clang/test/Driver/hip-std.hip index ad29f04dbbe7ff..2c4d161214f252 100644 --- a/clang/test/Driver/hip-std.hip +++ b/clang/test/Driver/hip-std.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### -nogpulib -nogpuinc --target=x86_64-unknown-linux-gnu -offload-arch=gfx906 %s \ // RUN: 2>&1 | FileCheck -check-prefixes=DEFAULT %s // DEFAULT: "-cc1"{{.*}}"-fcuda-is-device"{{.*}} diff --git a/clang/test/Driver/hip-syntax-only.hip b/clang/test/Driver/hip-syntax-only.hip index 0fc53cf755ed2a..b944fdbeaf953e 100644 --- a/clang/test/Driver/hip-syntax-only.hip +++ b/clang/test/Driver/hip-syntax-only.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### -nogpulib -nogpuinc --target=x86_64 -fsyntax-only %s 2>&1 | FileCheck %s // Check that there are commands for both host- and device-side compilations. diff --git a/clang/test/Driver/hip-target-id.hip b/clang/test/Driver/hip-target-id.hip index e7ba456565c095..cf2ea0dc25daa3 100644 --- a/clang/test/Driver/hip-target-id.hip +++ b/clang/test/Driver/hip-target-id.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### --target=x86_64-linux-gnu \ // RUN: -x hip \ // RUN: --offload-arch=gfx908:xnack+:sramecc+ \ diff --git a/clang/test/Driver/hip-toolchain-device-only.hip b/clang/test/Driver/hip-toolchain-device-only.hip index c6ff67bde738c0..12097819f66888 100644 --- a/clang/test/Driver/hip-toolchain-device-only.hip +++ b/clang/test/Driver/hip-toolchain-device-only.hip @@ -1,5 +1,3 @@ -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### --target=x86_64-linux-gnu \ // RUN: --offload-arch=gfx803 --offload-arch=gfx900 \ // RUN: --cuda-device-only -nogpuinc -nogpulib -c \ diff --git a/clang/test/Driver/hip-toolchain-dwarf.hip b/clang/test/Driver/hip-toolchain-dwarf.hip index 2fb4602b50673f..7646227295e122 100644 --- a/clang/test/Driver/hip-toolchain-dwarf.hip +++ b/clang/test/Driver/hip-toolchain-dwarf.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### -c --target=x86_64-linux-gnu -fgpu-rdc \ // RUN: -nogpuinc -nogpulib -x hip --offload-arch=gfx803 %s \ // RUN: -Xarch_gfx803 -g 2>&1 | FileCheck %s -check-prefix=DWARF_VER diff --git a/clang/test/Driver/hip-toolchain-features.hip b/clang/test/Driver/hip-toolchain-features.hip index 551d8ef42e0202..dbc007ac1335b4 100644 --- a/clang/test/Driver/hip-toolchain-features.hip +++ b/clang/test/Driver/hip-toolchain-features.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### --target=x86_64-linux-gnu -fgpu-rdc -nogpulib --no-offload-new-driver \ // RUN: -nogpuinc --offload-arch=gfx906:xnack+ --offload-arch=gfx900:xnack+ %s \ // RUN: 2>&1 | FileCheck %s -check-prefix=XNACK diff --git a/clang/test/Driver/hip-toolchain-mllvm.hip b/clang/test/Driver/hip-toolchain-mllvm.hip index 110d1c9b7fd33e..33018cc398915b 100644 --- a/clang/test/Driver/hip-toolchain-mllvm.hip +++ b/clang/test/Driver/hip-toolchain-mllvm.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // Check -Xoffload-linker -mllvm=* options are passed // to device lld linker only. // -mllvm options are passed to clang and device lld linker. diff --git a/clang/test/Driver/hip-toolchain-no-rdc.hip b/clang/test/Driver/hip-toolchain-no-rdc.hip index e72df739b64b1b..0cdc82ead65408 100644 --- a/clang/test/Driver/hip-toolchain-no-rdc.hip +++ b/clang/test/Driver/hip-toolchain-no-rdc.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: rm -rf %t && mkdir %t // RUN: %clang -### --target=x86_64-linux-gnu -fno-gpu-rdc \ // RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 \ diff --git a/clang/test/Driver/hip-toolchain-opt.hip b/clang/test/Driver/hip-toolchain-opt.hip index 4de33cf41cbcab..b104f6fff2034f 100644 --- a/clang/test/Driver/hip-toolchain-opt.hip +++ b/clang/test/Driver/hip-toolchain-opt.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### \ // RUN: --target=x86_64-unknown-linux-gnu \ // RUN: --cuda-gpu-arch=gfx900 \ diff --git a/clang/test/Driver/hip-toolchain-rdc-separate.hip b/clang/test/Driver/hip-toolchain-rdc-separate.hip index 6efca87dc0db20..92f493912adb4d 100644 --- a/clang/test/Driver/hip-toolchain-rdc-separate.hip +++ b/clang/test/Driver/hip-toolchain-rdc-separate.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: rm -rf %t && mkdir %t // RUN: %clang -c -### --target=x86_64-linux-gnu \ // RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 \ diff --git a/clang/test/Driver/hip-toolchain-rdc-static-lib.hip b/clang/test/Driver/hip-toolchain-rdc-static-lib.hip index 2cfb2485238621..780426907e90e7 100644 --- a/clang/test/Driver/hip-toolchain-rdc-static-lib.hip +++ b/clang/test/Driver/hip-toolchain-rdc-static-lib.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### --target=x86_64-linux-gnu \ // RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 \ // RUN: --no-offload-new-driver --emit-static-lib -nogpulib \ diff --git a/clang/test/Driver/hip-toolchain-rdc.hip b/clang/test/Driver/hip-toolchain-rdc.hip index 49acc40ec6f9fd..7e6697a0e254f6 100644 --- a/clang/test/Driver/hip-toolchain-rdc.hip +++ b/clang/test/Driver/hip-toolchain-rdc.hip @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### --target=x86_64-linux-gnu -v \ // RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 \ // RUN: --hip-device-lib=lib1.bc --hip-device-lib=lib2.bc \ diff --git a/clang/test/Driver/hip-unbundle-preproc.hipi b/clang/test/Driver/hip-unbundle-preproc.hipi index 6d92d23819739a..da5c68ef1c158d 100644 --- a/clang/test/Driver/hip-unbundle-preproc.hipi +++ b/clang/test/Driver/hip-unbundle-preproc.hipi @@ -1,5 +1,3 @@ -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### --target=x86_64-unknown-linux-gnu \ // RUN: --no-offload-new-driver --offload-arch=gfx803 -nogpulib \ // RUN: -x hip-cpp-output %s 2>&1 | FileCheck %s diff --git a/clang/test/Driver/hip-wavefront-size.hip b/clang/test/Driver/hip-wavefront-size.hip index 500a8af78c1840..2d64ca15b7446c 100644 --- a/clang/test/Driver/hip-wavefront-size.hip +++ b/clang/test/Driver/hip-wavefront-size.hip @@ -1,5 +1,3 @@ -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### --target=x86_64-linux-gnu \ // RUN: --cuda-gpu-arch=gfx900 \ // RUN: --rocm-path=%S/Inputs/rocm --cuda-device-only %s \ diff --git a/clang/test/Driver/hip-windows-filename.hip b/clang/test/Driver/hip-windows-filename.hip index 39534a006b4a84..2d1207bb97b5da 100644 --- a/clang/test/Driver/hip-windows-filename.hip +++ b/clang/test/Driver/hip-windows-filename.hip @@ -1,4 +1,4 @@ -// REQUIRES: system-windows, amdgpu-registered-target +// REQUIRES: system-windows // RUN: %clang -### --target=x86_64-pc-windows-msvc \ // RUN: -x hip \ diff --git a/clang/test/Driver/hipspv-device-libs.hip b/clang/test/Driver/hipspv-device-libs.hip index 3a0fc1070a92c8..9d6af54b102557 100644 --- a/clang/test/Driver/hipspv-device-libs.hip +++ b/clang/test/Driver/hipspv-device-libs.hip @@ -1,4 +1,3 @@ -// REQUIRES: x86-registered-target // UNSUPPORTED: system-windows // RUN: %clang -### -target x86_64-linux-gnu --offload=spirv64 \ diff --git a/clang/test/Driver/hipspv-pass-plugin.hip b/clang/test/Driver/hipspv-pass-plugin.hip index 87027223125af5..fc3c64b0573520 100644 --- a/clang/test/Driver/hipspv-pass-plugin.hip +++ b/clang/test/Driver/hipspv-pass-plugin.hip @@ -1,4 +1,3 @@ -// REQUIRES: x86-registered-target // UNSUPPORTED: system-windows // RUN: %clang -### -target x86_64-linux-gnu --offload=spirv64 \ diff --git a/clang/test/Driver/hipspv-toolchain-rdc.hip b/clang/test/Driver/hipspv-toolchain-rdc.hip index d4e612cc54378f..2e7528a9996d87 100644 --- a/clang/test/Driver/hipspv-toolchain-rdc.hip +++ b/clang/test/Driver/hipspv-toolchain-rdc.hip @@ -1,4 +1,3 @@ -// REQUIRES: x86-registered-target // UNSUPPORTED: system-windows // RUN: %clang -### -x hip -target x86_64-linux-gnu --offload=spirv64 \ diff --git a/clang/test/Driver/hipspv-toolchain.hip b/clang/test/Driver/hipspv-toolchain.hip index 4005d9889051fa..a6c0166e8dce16 100644 --- a/clang/test/Driver/hipspv-toolchain.hip +++ b/clang/test/Driver/hipspv-toolchain.hip @@ -1,4 +1,3 @@ -// REQUIRES: x86-registered-target // UNSUPPORTED: system-windows // RUN: %clang -### -target x86_64-linux-gnu --offload=spirv64 \ diff --git a/clang/test/Driver/indirect-tls-seg-refs.c b/clang/test/Driver/indirect-tls-seg-refs.c index c3628e7beab4f5..c526753bd9c98f 100644 --- a/clang/test/Driver/indirect-tls-seg-refs.c +++ b/clang/test/Driver/indirect-tls-seg-refs.c @@ -1,5 +1,3 @@ -// REQUIRES: x86-registered-target - // RUN: %clang -### -target x86_64-unknown-linux %s 2>&1 | FileCheck %s -check-prefix=TLSDIRECT // RUN: %clang -### -target x86_64-unknown-linux -mno-tls-direct-seg-refs -mtls-direct-seg-refs %s 2>&1 | FileCheck %s -check-prefix=TLSDIRECT // RUN: %clang -### -target x86_64-unknown-linux -mtls-direct-seg-refs -mno-tls-direct-seg-refs %s 2>&1 | FileCheck %s -check-prefix=NO-TLSDIRECT diff --git a/clang/test/Driver/invalid-offload-options.cpp b/clang/test/Driver/invalid-offload-options.cpp index f9bb5cf9ab5636..48d5310538a3cf 100644 --- a/clang/test/Driver/invalid-offload-options.cpp +++ b/clang/test/Driver/invalid-offload-options.cpp @@ -1,4 +1,3 @@ -// REQUIRES: x86-registered-target // UNSUPPORTED: system-windows // RUN: not %clang -### -x hip --target=x86_64-linux-gnu --offload= \ diff --git a/clang/test/Driver/invalid-target-id.cl b/clang/test/Driver/invalid-target-id.cl index eca00f4ba53075..4f6f140437885f 100644 --- a/clang/test/Driver/invalid-target-id.cl +++ b/clang/test/Driver/invalid-target-id.cl @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: not %clang -target amdgcn-amd-amdhsa \ // RUN: -mcpu=gfx908xnack -nostdlib \ // RUN: %s 2>&1 | FileCheck -check-prefix=NOPLUS %s diff --git a/clang/test/Driver/lto.cu b/clang/test/Driver/lto.cu index fb8cc5cba3938c..596e6cfe073791 100644 --- a/clang/test/Driver/lto.cu +++ b/clang/test/Driver/lto.cu @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target - // -flto causes a switch to llvm-bc object files. // RUN: %clangxx --target=x86_64-unknown-linux-gnu --no-offload-new-driver -nocudainc -nocudalib -ccc-print-phases -c %s -flto 2> %t // RUN: FileCheck -check-prefix=CHECK-COMPILE-ACTIONS < %t %s diff --git a/clang/test/Driver/m68k-features.cpp b/clang/test/Driver/m68k-features.cpp index 67cdc0fe1b4fdc..56033bf0f23bfe 100644 --- a/clang/test/Driver/m68k-features.cpp +++ b/clang/test/Driver/m68k-features.cpp @@ -1,4 +1,3 @@ -// REQUIRES: m68k-registered-target // RUN: %clang --target=m68k -ffixed-a0 -### %s 2> %t // RUN: FileCheck --check-prefix=CHECK-FIXED-A0 < %t %s // CHECK-FIXED-A0: "-target-feature" "+reserve-a0" diff --git a/clang/test/Driver/mbackchain.c b/clang/test/Driver/mbackchain.c index bab555685620a4..3cdba0c4388771 100644 --- a/clang/test/Driver/mbackchain.c +++ b/clang/test/Driver/mbackchain.c @@ -1,7 +1,6 @@ // RUN: not %clang --target=s390x -c -### %s -mpacked-stack -mbackchain 2>&1 | FileCheck %s // RUN: %clang --target=s390x -c -### %s -mpacked-stack -mbackchain -msoft-float \ // RUN: 2>&1 | FileCheck %s --check-prefix=KERNEL-BUILD -// REQUIRES: systemz-registered-target // CHECK: error: unsupported option '-mpacked-stack -mbackchain -mhard-float' // KERNEL-BUILD-NOT: error: unsupported option diff --git a/clang/test/Driver/mips-abi.c b/clang/test/Driver/mips-abi.c index 05277520a94b19..06570b50928a1b 100644 --- a/clang/test/Driver/mips-abi.c +++ b/clang/test/Driver/mips-abi.c @@ -1,7 +1,5 @@ // Check passing Mips ABI options to the backend. // -// REQUIRES: mips-registered-target -// // RUN: %clang --target=mips-linux-gnu -### -c %s 2>&1 \ // RUN: | FileCheck -check-prefix=MIPS32R2-O32 %s // RUN: %clang --target=mips64-linux-gnu -mips32r2 -mabi=32 -### -c %s 2>&1 \ diff --git a/clang/test/Driver/mips-abicalls-warning.c b/clang/test/Driver/mips-abicalls-warning.c index f65d8311270727..98e26b76869493 100644 --- a/clang/test/Driver/mips-abicalls-warning.c +++ b/clang/test/Driver/mips-abicalls-warning.c @@ -1,4 +1,3 @@ -// REQUIRES: mips-registered-target // RUN: %clang -### -c --target=mips64-mti-elf -fno-pic %s 2>&1 | FileCheck -check-prefix=CHECK-PIC1-IMPLICIT %s // CHECK-PIC1-IMPLICIT: warning: ignoring '-fno-pic' option as it cannot be used with implicit usage of -mabicalls and the N64 ABI diff --git a/clang/test/Driver/mips-cs.cpp b/clang/test/Driver/mips-cs.cpp index a585d068f681cb..2b9bf9e58af4b8 100644 --- a/clang/test/Driver/mips-cs.cpp +++ b/clang/test/Driver/mips-cs.cpp @@ -1,5 +1,3 @@ -// REQUIRES: mips-registered-target -// // Check frontend and linker invocations on Mentor Graphics MIPS toolchain. // // = Big-endian, hard float diff --git a/clang/test/Driver/mips-fsf.cpp b/clang/test/Driver/mips-fsf.cpp index 58c7a1b96f55b2..cd8c11456caff7 100644 --- a/clang/test/Driver/mips-fsf.cpp +++ b/clang/test/Driver/mips-fsf.cpp @@ -1,5 +1,3 @@ -// REQUIRES: mips-registered-target - // Check frontend and linker invocations on FSF MIPS toolchain. // // = Big-endian, mips32, hard float diff --git a/clang/test/Driver/mips-gpopt-warning.c b/clang/test/Driver/mips-gpopt-warning.c index 2bd63b4d6518c2..6e5eb414dd19bd 100644 --- a/clang/test/Driver/mips-gpopt-warning.c +++ b/clang/test/Driver/mips-gpopt-warning.c @@ -1,4 +1,3 @@ -// REQUIRES: mips-registered-target // RUN: %clang -### -c --target=mips-mti-elf %s -mgpopt 2>&1 | FileCheck -check-prefix=IMPLICIT %s // IMPLICIT: warning: ignoring '-mgpopt' option as it cannot be used with the implicit usage of -mabicalls diff --git a/clang/test/Driver/mips-img-v2.cpp b/clang/test/Driver/mips-img-v2.cpp index 837c159c6d5f58..b9e758a3794340 100644 --- a/clang/test/Driver/mips-img-v2.cpp +++ b/clang/test/Driver/mips-img-v2.cpp @@ -1,5 +1,3 @@ -// REQUIRES: mips-registered-target - // Check frontend and linker invocations on the IMG v2 MIPS toolchain. // -EB -mips32r6 -mhard-float -mabi=32 diff --git a/clang/test/Driver/mips-img.cpp b/clang/test/Driver/mips-img.cpp index 3dd3dec09cf86b..68865209ed9bc7 100644 --- a/clang/test/Driver/mips-img.cpp +++ b/clang/test/Driver/mips-img.cpp @@ -1,5 +1,3 @@ -// REQUIRES: mips-registered-target - // Check frontend and linker invocations on the IMG MIPS toolchain. // // = Big-endian, mips32r6 diff --git a/clang/test/Driver/mips-indirect-branch.c b/clang/test/Driver/mips-indirect-branch.c index 6bbf5169a96720..94b79712147ec7 100644 --- a/clang/test/Driver/mips-indirect-branch.c +++ b/clang/test/Driver/mips-indirect-branch.c @@ -1,4 +1,3 @@ -// REQUIRES: mips-registered-target // -mindirect-jump=hazard -mips32 // RUN: not %clang --target=mips-unknown-linux-gnu -mips32 -### -c %s \ // RUN: -mindirect-jump=hazard 2>&1 | FileCheck %s --check-prefix=MIPS32 diff --git a/clang/test/Driver/mips-mti-linux.c b/clang/test/Driver/mips-mti-linux.c index ebcbff95a7c0ea..d10eb837b8a6e9 100644 --- a/clang/test/Driver/mips-mti-linux.c +++ b/clang/test/Driver/mips-mti-linux.c @@ -4,7 +4,6 @@ // it here to test that we are producing the correct paths/flags. // Ideally, we'd like to have an --llvm-toolchain option similar to // the --gcc-toolchain one. -// REQUIRES: mips-registered-target // = Big-endian, mips32r2, hard float // RUN: %clang -### %s 2>&1 \ diff --git a/clang/test/Driver/msan.c b/clang/test/Driver/msan.c index 7ee196cd969c47..241013cee22d53 100644 --- a/clang/test/Driver/msan.c +++ b/clang/test/Driver/msan.c @@ -1,5 +1,3 @@ -// REQUIRES: x86-registered-target - // RUN: %clang --target=mips64-linux-gnu -fsanitize=memory %s -S -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK0 // RUN: %clang --target=mips64el-unknown-linux-gnu -fsanitize=memory %s -S -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK0 // RUN: %clang --target=powerpc64-unknown-linux-gnu -fsanitize=memory %s -S -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK0 diff --git a/clang/test/Driver/nvptx-cuda-system-arch.c b/clang/test/Driver/nvptx-cuda-system-arch.c index 81cad371506692..e6a2fa40f0a038 100644 --- a/clang/test/Driver/nvptx-cuda-system-arch.c +++ b/clang/test/Driver/nvptx-cuda-system-arch.c @@ -1,6 +1,4 @@ // REQUIRES: system-linux -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target // REQUIRES: shell // RUN: mkdir -p %t diff --git a/clang/test/Driver/openmp-offload-headers.c b/clang/test/Driver/openmp-offload-headers.c index 7d0e826c1ff1c1..c09768483fe0eb 100644 --- a/clang/test/Driver/openmp-offload-headers.c +++ b/clang/test/Driver/openmp-offload-headers.c @@ -1,6 +1,3 @@ -// REQUIRES: nvptx-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp \ // RUN: -fopenmp-targets=nvptx64-nvidia-cuda,amdgcn-amd-amdhsa -Xopenmp-target=nvptx64-nvidia-cuda --offload-arch=sm_70 \ // RUN: -fopenmp-targets=nvptx64-nvidia-cuda,amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa --offload-arch=gfx908 \ diff --git a/clang/test/Driver/openmp-offload-infer.c b/clang/test/Driver/openmp-offload-infer.c index 388860abc01ad8..2a38a99c305184 100644 --- a/clang/test/Driver/openmp-offload-infer.c +++ b/clang/test/Driver/openmp-offload-infer.c @@ -1,7 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp \ // RUN: -nogpulib --offload-arch=sm_52 --offload-arch=gfx803 \ // RUN: --libomptarget-amdgpu-bc-path=%S/Inputs/hip_dev_lib/libomptarget-amdgpu-gfx803.bc \ diff --git a/clang/test/Driver/openmp-offload-jit.c b/clang/test/Driver/openmp-offload-jit.c index 6f5ae7ed7365d1..57f265ac37eacd 100644 --- a/clang/test/Driver/openmp-offload-jit.c +++ b/clang/test/Driver/openmp-offload-jit.c @@ -1,7 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target -// REQUIRES: amdgpu-registered-target - // Check that we enable LTO-mode properly with '-fopenmp-target-jit' and that it // still enabled LTO-mode if `-fno-offload-lto` is on. // RUN: %clang -### --target=x86_64-unknown-linux-gnu -ccc-print-phases -fopenmp=libomp \ diff --git a/clang/test/Driver/openmp-offload.c b/clang/test/Driver/openmp-offload.c index 6d1def28745c3b..38065d9398f452 100644 --- a/clang/test/Driver/openmp-offload.c +++ b/clang/test/Driver/openmp-offload.c @@ -2,10 +2,6 @@ /// Perform several driver tests for OpenMP offloading /// -// REQUIRES: x86-registered-target -// REQUIRES: powerpc-registered-target -// REQUIRES: nvptx-registered-target - /// ########################################################################### /// Check whether an invalid OpenMP target is specified: diff --git a/clang/test/Driver/openmp-system-arch.c b/clang/test/Driver/openmp-system-arch.c index a48c1e76fa758f..ea6ec6428592b3 100644 --- a/clang/test/Driver/openmp-system-arch.c +++ b/clang/test/Driver/openmp-system-arch.c @@ -1,7 +1,4 @@ // REQUIRES: system-linux -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target -// REQUIRES: nvptx-registered-target // REQUIRES: shell // RUN: mkdir -p %t diff --git a/clang/test/Driver/ppc-dependent-options.cpp b/clang/test/Driver/ppc-dependent-options.cpp index 8286422185cad6..414ed1e70bb305 100644 --- a/clang/test/Driver/ppc-dependent-options.cpp +++ b/clang/test/Driver/ppc-dependent-options.cpp @@ -1,4 +1,3 @@ -// REQUIRES: powerpc-registered-target // RUN: not %clang -target powerpc64le-unknown-unknown -fsyntax-only \ // RUN: -mcpu=power8 -std=c++11 %s 2>&1 | FileCheck %s \ // RUN: -check-prefix=CHECK-DEFAULT diff --git a/clang/test/Driver/ppc-float-abi-warning.cpp b/clang/test/Driver/ppc-float-abi-warning.cpp index 87d6d87a3b31e0..568021024a2216 100644 --- a/clang/test/Driver/ppc-float-abi-warning.cpp +++ b/clang/test/Driver/ppc-float-abi-warning.cpp @@ -1,4 +1,3 @@ -// REQUIRES: powerpc-registered-target // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s \ // RUN: --gcc-toolchain=%S/Inputs/powerpc64le-linux-gnu-tree/gcc-11.2.0 \ // RUN: -mabi=ieeelongdouble -stdlib=libstdc++ 2>&1 | FileCheck %s diff --git a/clang/test/Driver/ppc-unsupported.c b/clang/test/Driver/ppc-unsupported.c index 8361edb8e1d7b2..dde4d8d1c1935b 100644 --- a/clang/test/Driver/ppc-unsupported.c +++ b/clang/test/Driver/ppc-unsupported.c @@ -1,4 +1,3 @@ -// REQUIRES: powerpc-registered-target // RUN: not %clang -target powerpc64-unknown-freebsd -maix-struct-return \ // RUN: -c %s 2>&1 | FileCheck %s // RUN: not %clang -target powerpc64-unknown-freebsd -msvr4-struct-return \ diff --git a/clang/test/Driver/riscv32-toolchain-extra.c b/clang/test/Driver/riscv32-toolchain-extra.c index aab6b36f3cfca0..cbb3c23ebb3421 100644 --- a/clang/test/Driver/riscv32-toolchain-extra.c +++ b/clang/test/Driver/riscv32-toolchain-extra.c @@ -3,7 +3,7 @@ // The tests here are similar to those in riscv32-toolchain.c, however // these tests need to create symlinks to test directory trees in order to // set up the environment and therefore shell support is required. -// REQUIRES: shell, riscv-registered-target +// REQUIRES: shell // UNSUPPORTED: system-windows // If there is no GCC install detected then the driver searches for executables diff --git a/clang/test/Driver/riscv64-toolchain-extra.c b/clang/test/Driver/riscv64-toolchain-extra.c index d8d9b584416765..99460a3030d3a0 100644 --- a/clang/test/Driver/riscv64-toolchain-extra.c +++ b/clang/test/Driver/riscv64-toolchain-extra.c @@ -3,7 +3,7 @@ // The tests here are similar to those in riscv64-toolchain.c, however // these tests need to create symlinks to test directory trees in order to // set up the environment and therefore shell support is required. -// REQUIRES: shell, riscv-registered-target +// REQUIRES: shell // UNSUPPORTED: system-windows // If there is no GCC install detected then the driver searches for executables diff --git a/clang/test/Driver/rocm-detect.cl b/clang/test/Driver/rocm-detect.cl index 0dc808ee574e74..2d693e2afb04e0 100644 --- a/clang/test/Driver/rocm-detect.cl +++ b/clang/test/Driver/rocm-detect.cl @@ -1,5 +1,3 @@ -// REQUIRES: amdgpu-registered-target - // Make sure the appropriate device specific library is available. // We don't include every target in the test directory, so just pick a valid diff --git a/clang/test/Driver/rocm-detect.hip b/clang/test/Driver/rocm-detect.hip index 8b15c322e3fb36..4aafeb97c00b5f 100644 --- a/clang/test/Driver/rocm-detect.hip +++ b/clang/test/Driver/rocm-detect.hip @@ -1,5 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target // UNSUPPORTED: system-windows // Make sure the appropriate device specific library is available. diff --git a/clang/test/Driver/rocm-device-libs.cl b/clang/test/Driver/rocm-device-libs.cl index c536661f04153a..415719105d5dc2 100644 --- a/clang/test/Driver/rocm-device-libs.cl +++ b/clang/test/Driver/rocm-device-libs.cl @@ -1,4 +1,3 @@ -// REQUIRES: amdgpu-registered-target // REQUIRES: !system-windows // Test flush-denormals-to-zero enabled uses oclc_daz_opt_on diff --git a/clang/test/Driver/save-temps.c b/clang/test/Driver/save-temps.c index a26ba9f4ec0d36..b0cfa4fd814a88 100644 --- a/clang/test/Driver/save-temps.c +++ b/clang/test/Driver/save-temps.c @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: arm-registered-target - // RUN: %clang -target x86_64-apple-darwin -save-temps -arch x86_64 %s -### 2>&1 \ // RUN: | FileCheck %s // CHECK: "-o" "save-temps.i" diff --git a/clang/test/Driver/sysroot.c b/clang/test/Driver/sysroot.c index 4e9ed2bf6b6821..3080f76e031686 100644 --- a/clang/test/Driver/sysroot.c +++ b/clang/test/Driver/sysroot.c @@ -1,5 +1,3 @@ -// REQUIRES: x86-registered-target -// // Check that --sysroot= also applies to header search paths. // RUN: %clang -target i386-unk-unk --sysroot=/FOO -### -E %s 2> %t1 // RUN: FileCheck --check-prefix=CHECK-SYSROOTEQ < %t1 %s diff --git a/clang/test/Driver/target-id-macros.cl b/clang/test/Driver/target-id-macros.cl index 71c33a5ebff1c3..5354f581a975ee 100644 --- a/clang/test/Driver/target-id-macros.cl +++ b/clang/test/Driver/target-id-macros.cl @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -E -dM -target amdgcn-amd-amdhsa \ // RUN: -mcpu=gfx908:xnack+:sramecc- -nogpulib -o - %s 2>&1 \ // RUN: | FileCheck -check-prefixes=PROC,ID1 %s diff --git a/clang/test/Driver/target-id.cl b/clang/test/Driver/target-id.cl index 955f32f017056a..9bef5141fb39e9 100644 --- a/clang/test/Driver/target-id.cl +++ b/clang/test/Driver/target-id.cl @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: amdgpu-registered-target - // RUN: %clang -### -target amdgcn-amd-amdhsa \ // RUN: -mcpu=gfx908:xnack+:sramecc- \ // RUN: -nostdlib %s 2>&1 | FileCheck %s diff --git a/clang/test/Driver/thinlto.cu b/clang/test/Driver/thinlto.cu index 7c51a5194e0b76..c175aae37c718d 100644 --- a/clang/test/Driver/thinlto.cu +++ b/clang/test/Driver/thinlto.cu @@ -1,6 +1,3 @@ -// REQUIRES: x86-registered-target -// REQUIRES: nvptx-registered-target - // -flto=thin causes a switch to llvm-bc object files. // RUN: %clangxx -ccc-print-phases --no-offload-new-driver -nocudainc -nocudalib -c %s -flto=thin 2> %t // RUN: FileCheck -check-prefix=CHECK-COMPILE-ACTIONS < %t %s diff --git a/clang/test/Driver/tsan.c b/clang/test/Driver/tsan.c index 82f4d72bdc4c5b..21d97c7a9fb4b0 100644 --- a/clang/test/Driver/tsan.c +++ b/clang/test/Driver/tsan.c @@ -1,5 +1,3 @@ -// REQUIRES: x86-registered-target - // RUN: %clang -target x86_64-unknown-linux -fsanitize=thread %s -S -emit-llvm -o - | FileCheck %s // RUN: %clang -O1 -target x86_64-unknown-linux -fsanitize=thread %s -S -emit-llvm -o - | FileCheck %s // RUN: %clang -O2 -target x86_64-unknown-linux -fsanitize=thread %s -S -emit-llvm -o - | FileCheck %s diff --git a/clang/test/Driver/ve-toolchain.c b/clang/test/Driver/ve-toolchain.c index 078341eb1202d6..27fde7265afab5 100644 --- a/clang/test/Driver/ve-toolchain.c +++ b/clang/test/Driver/ve-toolchain.c @@ -1,5 +1,4 @@ /// Check the behavior of toolchain for NEC Aurora VE -/// REQUIRES: ve-registered-target /// UNSUPPORTED: system-windows ///----------------------------------------------------------------------------- diff --git a/clang/test/Driver/ve-toolchain.cpp b/clang/test/Driver/ve-toolchain.cpp index cd48dd792f8582..2e8f0f9bc8a573 100644 --- a/clang/test/Driver/ve-toolchain.cpp +++ b/clang/test/Driver/ve-toolchain.cpp @@ -1,5 +1,4 @@ /// Check the behavior of toolchain for NEC Aurora VE -/// REQUIRES: ve-registered-target /// UNSUPPORTED: system-windows ///-----------------------------------------------------------------------------