Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Driver] Remove a bunch of unnecessary REQUIRES constraints #94055

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion clang/test/Driver/aarch64-outliner.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/amdgcn-gz-options.cl
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions clang/test/Driver/amdgpu-hip-system-arch.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// REQUIRES: system-linux
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated, but I don't see why this would fail on e.g. a FreeBSD host. Maybe it should be !WINDOWS? Although that should also be handled by REQUIRES: shell

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope you feel empowered to post more cleanup patches upstream!

// REQUIRES: x86-registered-target
// REQUIRES: amdgpu-registered-target
// REQUIRES: shell

// RUN: mkdir -p %t
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/amdgpu-invalid-target-id.s
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion clang/test/Driver/amdgpu-macros.cl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// REQUIRES: amdgpu-registered-target
// Check that appropriate macros are defined for every supported AMDGPU
// "-target" and "-mcpu" options.

Expand Down
2 changes: 0 additions & 2 deletions clang/test/Driver/amdgpu-openmp-system-arch-fail.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// REQUIRES: system-linux
// REQUIRES: x86-registered-target
// REQUIRES: amdgpu-registered-target
// REQUIRES: shell

// RUN: mkdir -p %t
Expand Down
2 changes: 0 additions & 2 deletions clang/test/Driver/amdgpu-openmp-toolchain.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions clang/test/Driver/arm-float-abi-runtime-path.c
Original file line number Diff line number Diff line change
@@ -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".
Expand Down
1 change: 0 additions & 1 deletion clang/test/Driver/arm-float-abi.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion clang/test/Driver/arm-machine-outliner.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cl-options.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion clang/test/Driver/clang-offload-bundler-zlib.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// REQUIRES: zlib && !zstd
// REQUIRES: x86-registered-target
// UNSUPPORTED: target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}}

//
Expand Down
1 change: 0 additions & 1 deletion clang/test/Driver/clang-offload-bundler-zstd.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// REQUIRES: zstd
// REQUIRES: x86-registered-target
// UNSUPPORTED: target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}}

//
Expand Down
1 change: 0 additions & 1 deletion clang/test/Driver/compress-noias.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cuda-arch-translation.cu
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cuda-bad-arch.cu
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cuda-bail-out.cu
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cuda-bindings.cu
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
// way. Instead we check whether we've generated a permanent name on
// device side, which appends '-device-cuda-<triple>' 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.
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cuda-constructor-alias.cu
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 0 additions & 2 deletions clang/test/Driver/cuda-cross-compiling.c
Original file line number Diff line number Diff line change
@@ -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.
//
Expand Down
2 changes: 0 additions & 2 deletions clang/test/Driver/cuda-detect-path.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// REQUIRES: x86-registered-target
// REQUIRES: nvptx-registered-target
// This tests uses the PATH environment variable.
// REQUIRES: !system-windows

Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cuda-detect.cu
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cuda-external-tools.cu
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cuda-macosx.cu
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cuda-march.cu
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions clang/test/Driver/cuda-omp-unsupported-debug-options.cu
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cuda-openmp-driver.cu
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions clang/test/Driver/cuda-options.cu
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cuda-output-asm.cu
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cuda-phases.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cuda-ptxas-path.cu
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cuda-version-check.cu
Original file line number Diff line number Diff line change
@@ -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 | \
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/cuda-windows.cu
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
1 change: 0 additions & 1 deletion clang/test/Driver/driverkit-arm64.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// REQUIRES: aarch64-registered-target
// RUN: %clang %s -target arm64-apple-driverkit -### 2>&1 | FileCheck %s

// CHECK: "-target-cpu" "apple-a7"
1 change: 0 additions & 1 deletion clang/test/Driver/driverkit-arm64e.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// REQUIRES: aarch64-registered-target
// RUN: %clang %s -target arm64e-apple-driverkit -### 2>&1 | FileCheck %s

// CHECK: "-target-cpu" "apple-a12"
1 change: 0 additions & 1 deletion clang/test/Driver/driverkit-cplusplus.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// REQUIRES: x86-registered-target
// RUN: %clang %s -target x86_64-apple-driverkit19.0 -fsyntax-only

#if __cplusplus != 201703L
Expand Down
1 change: 0 additions & 1 deletion clang/test/Driver/driverkit-exceptions.cpp
Original file line number Diff line number Diff line change
@@ -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

Expand Down
1 change: 0 additions & 1 deletion clang/test/Driver/driverkit-path.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// REQUIRES: x86-registered-target
// UNSUPPORTED: system-windows
// Windows is unsupported because we use the Unix path separator `\`.

Expand Down
1 change: 0 additions & 1 deletion clang/test/Driver/driverkit-rtti.cpp
Original file line number Diff line number Diff line change
@@ -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; }
Expand Down
1 change: 0 additions & 1 deletion clang/test/Driver/driverkit-target-cpu.c
Original file line number Diff line number Diff line change
@@ -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; }
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/dwarf-target-version-clamp.cu
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions clang/test/Driver/elfiamcu-header-search.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions clang/test/Driver/global-isel.c
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/gpu-libc-headers.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion clang/test/Driver/hexagon-toolchain-elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
// -----------------------------------------------------------------------------
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/hip-autolink.hip
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/hip-binding.hip
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/hip-code-object-version.hip
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// REQUIRES: amdgpu-registered-target


// Check bundle ID for code object version 4.

// RUN: not %clang -### --target=x86_64-linux-gnu \
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/hip-cuid-hash.hip
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/hip-cuid.hip
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// REQUIRES: x86-registered-target
// REQUIRES: amdgpu-registered-target

// Check invalid -fuse-cuid= option.

// RUN: not %clang -### -x hip \
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/hip-default-gpu-arch.hip
Original file line number Diff line number Diff line change
@@ -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"
3 changes: 0 additions & 3 deletions clang/test/Driver/hip-device-compile.hip
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/hip-device-libs.hip
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/hip-fpie-option.hip
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/hip-gsplit-dwarf-options.hip
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/hip-gz-options.hip
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
3 changes: 0 additions & 3 deletions clang/test/Driver/hip-host-cpu-features.hip
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions clang/test/Driver/hip-include-path.hip
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// REQUIRES: x86-registered-target
// REQUIRES: amdgpu-registered-target
// REQUIRES: libgcc
// UNSUPPORTED: system-windows

Expand Down
Loading
Loading