Skip to content

Commit 12949c9

Browse files
authored
[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.
1 parent 27fe526 commit 12949c9

File tree

133 files changed

+8
-293
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+8
-293
lines changed

clang/test/Driver/aarch64-outliner.c

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: aarch64-registered-target
21
// RUN: %clang --target=aarch64 -moutline -S %s -### 2>&1 | FileCheck %s -check-prefix=ON
32
// RUN: %clang --target=aarch64_be -moutline -S %s -### 2>&1 | FileCheck %s -check-prefix=ON
43
// ON: "-mllvm" "-enable-machine-outliner"

clang/test/Driver/amdgcn-gz-options.cl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: zlib, amdgpu-registered-target
1+
// REQUIRES: zlib
22

33
// RUN: %clang -### -target amdgcn-amd-amdhsa -gz=none -x assembler %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_NONE %s
44
// RUN: %clang -### -target amdgcn-amd-amdhsa -gz=none -nogpulib %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_NONE %s

clang/test/Driver/amdgpu-hip-system-arch.c

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// REQUIRES: system-linux
2-
// REQUIRES: x86-registered-target
3-
// REQUIRES: amdgpu-registered-target
42
// REQUIRES: shell
53

64
// RUN: mkdir -p %t

clang/test/Driver/amdgpu-invalid-target-id.s

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: amdgpu-registered-target
3-
41
// RUN: not %clang -target amdgcn-amd-amdhsa \
52
// RUN: -mcpu=gfx908xnack -nostdlib \
63
// RUN: %s 2>&1 | FileCheck -check-prefix=NOPLUS %s

clang/test/Driver/amdgpu-macros.cl

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: amdgpu-registered-target
21
// Check that appropriate macros are defined for every supported AMDGPU
32
// "-target" and "-mcpu" options.
43

clang/test/Driver/amdgpu-openmp-system-arch-fail.c

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// REQUIRES: system-linux
2-
// REQUIRES: x86-registered-target
3-
// REQUIRES: amdgpu-registered-target
42
// REQUIRES: shell
53

64
// RUN: mkdir -p %t

clang/test/Driver/amdgpu-openmp-toolchain.c

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: amdgpu-registered-target
31
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
42
// RUN: -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx906 --libomptarget-amdgpu-bc-path=%S/Inputs/hip_dev_lib -nogpulib %s 2>&1 \
53
// RUN: | FileCheck %s

clang/test/Driver/arm-float-abi-runtime-path.c

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/// Check that libraries built with the per target runtime directory layout
22
/// are selected correctly when using variations of Arm triples.
33

4-
// REQUIRES: arm-registered-target
5-
64
// RUN: %clang %s --target=arm-unknown-linux-gnueabihf -print-runtime-dir \
75
// RUN: -resource-dir=%S/Inputs/arm_float_abi_runtime_path 2>&1 | FileCheck -check-prefix=ARMHF %s
86
/// "armv7l" should be normalised to just "arm".

clang/test/Driver/arm-float-abi.c

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: arm-registered-target
21
// RUN: not %clang %s -target armv7-apple-ios -mfloat-abi=hard 2>&1 | FileCheck -check-prefix=ARMV7-ERROR %s
32
// RUN: %clang %s -target armv7-apple-ios -mfloat-abi=softfp -### 2>&1 | FileCheck -check-prefix=NOERROR %s
43
// RUN: %clang %s -arch armv7 -target thumbv7-apple-darwin-eabi -mfloat-abi=hard -### 2>&1 | FileCheck -check-prefix=NOERROR %s

clang/test/Driver/arm-machine-outliner.c

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: arm-registered-target
21
// RUN: %clang -target armv7-linux-gnueabihf -moutline -c %s -### 2>&1 | FileCheck %s -check-prefix=ON
32
// ON: "-mllvm" "-enable-machine-outliner"
43
// RUN: %clang -target armv7-linux-gnueabihf -flto -moutline %s -### 2>&1 | FileCheck %s -check-prefix=ON-LTO

clang/test/Driver/cl-options.cu

-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// Note: %s must be preceded by --, otherwise it may be interpreted as a
44
// command-line option, e.g. on Mac where %s is commonly under /Users.
55

6-
// REQUIRES: x86-registered-target
7-
// REQUIRES: nvptx-registered-target
8-
96
// -stack-protector should not be passed to device-side CUDA compilation
107
// RUN: not %clang_cl -### -nocudalib -nocudainc -- %s 2>&1 | FileCheck -check-prefix=GS-default %s
118
// GS-default: "-cc1" "-triple" "nvptx{{(64)?}}-nvidia-cuda"

clang/test/Driver/clang-offload-bundler-zlib.c

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: zlib && !zstd
2-
// REQUIRES: x86-registered-target
32
// UNSUPPORTED: target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}}
43

54
//

clang/test/Driver/clang-offload-bundler-zstd.c

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: zstd
2-
// REQUIRES: x86-registered-target
32
// UNSUPPORTED: target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}}
43

54
//

clang/test/Driver/compress-noias.c

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: zlib
2-
// REQUIRES: x86-registered-target
32

43
// 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
54
// CHECK-_COMPRESS_DEBUG_SECTIONS: "-compress-debug-sections"

clang/test/Driver/cuda-arch-translation.cu

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// Tests that "sm_XX" gets correctly converted to "compute_YY" when we invoke
22
// fatbinary.
3-
//
4-
// REQUIRES: x86-registered-target
5-
// REQUIRES: nvptx-registered-target
63

74
// 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 \
85
// RUN: | FileCheck -check-prefixes=CUDA,SM20 %s

clang/test/Driver/cuda-bad-arch.cu

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
// Checks errors generated by passing a bad value for --cuda-gpu-arch.
2-
// REQUIRES: x86-registered-target
3-
// REQUIRES: nvptx-registered-target
4-
// REQUIRES: amdgpu-registered-target
52

63
// 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 \
74
// RUN: | FileCheck -check-prefix BAD %s

clang/test/Driver/cuda-bail-out.cu

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// Test clang driver bails out after one error during CUDA compilation.
22

3-
// REQUIRES: powerpc-registered-target
4-
// REQUIRES: nvptx-registered-target
5-
63
#ifdef FORCE_ERROR
74
#error compilation failed
85
#endif

clang/test/Driver/cuda-bindings.cu

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
// way. Instead we check whether we've generated a permanent name on
1010
// device side, which appends '-device-cuda-<triple>' suffix.
1111

12-
// REQUIRES: powerpc-registered-target
13-
// REQUIRES: nvptx-registered-target
14-
1512
//
1613
// Test single gpu architecture with complete compilation.
1714
// No intermediary device files should have "-device-cuda..." in the name.

clang/test/Driver/cuda-constructor-alias.cu

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: nvptx-registered-target
3-
41
// Check that we don't pass -mconstructor-aliases to CUDA device-side
52
// compilation, but we do pass it to host-side compilation.
63

clang/test/Driver/cuda-cross-compiling.c

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Tests the driver when targeting the NVPTX architecture directly without a
22
// host toolchain to perform CUDA mappings.
33

4-
// REQUIRES: nvptx-registered-target
5-
64
//
75
// Test the generated phases when targeting NVPTX.
86
//

clang/test/Driver/cuda-detect-path.cu

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: nvptx-registered-target
31
// This tests uses the PATH environment variable.
42
// REQUIRES: !system-windows
53

clang/test/Driver/cuda-detect.cu

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: nvptx-registered-target
3-
//
41
// Check that we properly detect CUDA installation.
52
// RUN: %clang -v --target=i386-unknown-linux \
63
// RUN: --sysroot=%S/no-cuda-there --cuda-path-ignore-env 2>&1 | FileCheck %s -check-prefix NOCUDA

clang/test/Driver/cuda-external-tools.cu

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// Tests that ptxas and fatbinary are invoked correctly during CUDA
22
// compilation.
3-
//
4-
// REQUIRES: x86-registered-target
5-
// REQUIRES: nvptx-registered-target
63

74
// Regular compiles with -O{0,1,2,3,4,fast}. -O4 and -Ofast map to ptxas O3.
85
// RUN: %clang -### --target=x86_64-linux-gnu -O0 -c %s 2>&1 \

clang/test/Driver/cuda-macosx.cu

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: nvptx-registered-target
3-
//
41
// RUN: %clang -v --target=i386-apple-macosx \
52
// RUN: --sysroot=%S/Inputs/CUDA-macosx --cuda-path-ignore-env 2>&1 | FileCheck %s
63

clang/test/Driver/cuda-march.cu

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Checks that cuda compilation does the right thing when passed -march.
22
// (Specifically, we want to pass it to host compilation, but not to device
33
// compilation or ptxas!)
4-
//
5-
// REQUIRES: x86-registered-target
6-
// REQUIRES: nvptx-registered-target
74

85
// RUN: %clang -### --target=x86_64-linux-gnu -c \
96
// RUN: -nogpulib -nogpuinc -march=haswell %s 2>&1 | FileCheck %s

clang/test/Driver/cuda-omp-unsupported-debug-options.cu

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: nvptx-registered-target
31
// REQUIRES: zlib
42

53
// RUN: %clang -### --target=x86_64-linux-gnu --offload-arch=sm_52 -nogpulib -nogpuinc -c %s -g -gz 2>&1 \

clang/test/Driver/cuda-openmp-driver.cu

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: nvptx-registered-target
3-
41
// RUN: %clang -### -target x86_64-linux-gnu -nocudalib -ccc-print-bindings -fgpu-rdc \
52
// RUN: --offload-new-driver --offload-arch=sm_35 --offload-arch=sm_70 %s 2>&1 \
63
// RUN: | FileCheck -check-prefix BINDINGS %s

clang/test/Driver/cuda-options.cu

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// Tests CUDA compilation pipeline construction in Driver.
2-
// REQUIRES: x86-registered-target
3-
// REQUIRES: nvptx-registered-target
42

53
// Simple compilation case. Compile device-side to PTX assembly and make sure
64
// we use it on the host side.

clang/test/Driver/cuda-output-asm.cu

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// Tests CUDA compilation with -S and -emit-llvm.
22

3-
// REQUIRES: x86-registered-target
4-
// REQUIRES: nvptx-registered-target
5-
63
// 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 \
74
// RUN: | FileCheck -check-prefix HOST -check-prefix SM20 %s
85
// 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 \

clang/test/Driver/cuda-phases.cu

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
// - Host/device-only compilation;
55
// - User-requested final phase - binary or assembly.
66

7-
// REQUIRES: powerpc-registered-target
8-
// REQUIRES: nvptx-registered-target
9-
//
107
// Test single gpu architecture with complete compilation.
118
//
129
// Test CUDA NVPTX phases.

clang/test/Driver/cuda-ptxas-path.cu

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: nvptx-registered-target
3-
41
// RUN: %clang -### --target=i386-unknown-linux \
52
// RUN: --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda \
63
// RUN: --ptxas-path=/some/path/to/ptxas %s 2>&1 \

clang/test/Driver/cuda-version-check.cu

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: nvptx-registered-target
3-
41
// RUN: not %clang --target=x86_64-linux -v -### --cuda-gpu-arch=sm_20 --cuda-path=%S/Inputs/CUDA/usr/local/cuda 2>&1 %s | \
52
// RUN: FileCheck %s --check-prefix=OK
63
// RUN: %clang --target=x86_64-linux -v -### --cuda-gpu-arch=sm_20 --cuda-path=%S/Inputs/CUDA_80/usr/local/cuda 2>&1 %s | \

clang/test/Driver/cuda-windows.cu

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: nvptx-registered-target
3-
//
41
// RUN: %clang -v --target=i386-pc-windows-msvc \
52
// RUN: --sysroot=%S/Inputs/CUDA-windows 2>&1 %s -### | FileCheck %s
63
// RUN: %clang -v --target=i386-pc-windows-mingw32 \

clang/test/Driver/driverkit-arm64.c

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: aarch64-registered-target
21
// RUN: %clang %s -target arm64-apple-driverkit -### 2>&1 | FileCheck %s
32

43
// CHECK: "-target-cpu" "apple-a7"

clang/test/Driver/driverkit-arm64e.c

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: aarch64-registered-target
21
// RUN: %clang %s -target arm64e-apple-driverkit -### 2>&1 | FileCheck %s
32

43
// CHECK: "-target-cpu" "apple-a12"

clang/test/Driver/driverkit-cplusplus.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: x86-registered-target
21
// RUN: %clang %s -target x86_64-apple-driverkit19.0 -fsyntax-only
32

43
#if __cplusplus != 201703L

clang/test/Driver/driverkit-exceptions.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: x86-registered-target
21
// RUN: %clang %s -target x86_64-apple-driverkit19.0 -### 2>&1 | FileCheck %s -check-prefix=DEFAULT
32
// RUN: %clang %s -target x86_64-apple-driverkit19.0 -fexceptions -### 2>&1 | FileCheck %s -check-prefix=USERPROVIDED
43

clang/test/Driver/driverkit-path.c

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: x86-registered-target
21
// UNSUPPORTED: system-windows
32
// Windows is unsupported because we use the Unix path separator `\`.
43

clang/test/Driver/driverkit-rtti.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: x86-registered-target
21
// RUN: %clang %s -target x86_64-apple-driverkit19.0 -### 2>&1 | FileCheck %s
32

43
int main() { return 0; }

clang/test/Driver/driverkit-target-cpu.c

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: x86-registered-target
21
// RUN: %clang %s -target x86_64-apple-driverkit19.0 -### 2>&1 | FileCheck %s
32

43
int main() { return 0; }

clang/test/Driver/dwarf-target-version-clamp.cu

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: nvptx-registered-target
3-
41
// Verify that DWARF version is properly clamped for nvptx, but not for the host.
52
// RUN: %clang -### --target=x86_64-linux-gnu -nogpulib -nogpuinc -c %s -gdwarf-5 -gembed-source 2>&1 \
63
// RUN: | FileCheck %s --check-prefix=DWARF-CLAMP

clang/test/Driver/elfiamcu-header-search.c

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
31
// RUN: %clang -target i386-pc-elfiamcu -c -v -fsyntax-only %s 2>&1 | FileCheck %s
42
// CHECK-NOT: /usr/include
53
// CHECK-NOT: /usr/local/include

clang/test/Driver/global-isel.c

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// REQUIRES: x86-registered-target,aarch64-registered-target
2-
31
// RUN: %clang -fglobal-isel -S -### %s 2>&1 | FileCheck --check-prefix=ENABLED %s
42
// RUN: %clang -fno-global-isel -S -### %s 2>&1 | FileCheck --check-prefix=DISABLED %s
53

clang/test/Driver/gpu-libc-headers.c

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: nvptx-registered-target
2-
// REQUIRES: amdgpu-registered-target
3-
41
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp --sysroot=./ \
52
// RUN: -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa --offload-arch=gfx908 \
63
// RUN: -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-HEADERS

clang/test/Driver/hexagon-toolchain-elf.c

-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,6 @@
532532
// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/Tools/bin \
533533
// RUN: -mcpu=hexagonv60 \
534534
// RUN: -fuse-ld=fake-value-to-ignore-CLANG_DEFAULT_LINKER %s 2>&1 | FileCheck -check-prefix=CHECK381 %s
535-
// REQUIRES: hexagon-registered-target
536535
// CHECK381: "-march=hexagon"
537536
// CHECK381: "-mcpu=hexagonv60"
538537
// -----------------------------------------------------------------------------

clang/test/Driver/hip-autolink.hip

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: amdgpu-registered-target
3-
//
41
// RUN: %clang --target=i386-pc-windows-msvc --cuda-gpu-arch=gfx906 -nogpulib -nogpuinc \
52
// RUN: --cuda-device-only %s -### 2>&1 | FileCheck --check-prefix=DEV %s
63
// RUN: %clang --target=i386-pc-windows-msvc --cuda-gpu-arch=gfx906 -nogpulib -nogpuinc \

clang/test/Driver/hip-binding.hip

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: amdgpu-registered-target
3-
41
// RUN: %clang -ccc-print-bindings --target=x86_64-linux-gnu \
52
// RUN: --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %s \
63
// RUN: --no-offload-new-driver -c 2>&1 | FileCheck -check-prefix=NRDCS %s

clang/test/Driver/hip-code-object-version.hip

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: amdgpu-registered-target
2-
3-
41
// Check bundle ID for code object version 4.
52

63
// RUN: not %clang -### --target=x86_64-linux-gnu \

clang/test/Driver/hip-cuid-hash.hip

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: amdgpu-registered-target
3-
41
// Check CUID generated by hash.
52
// The same CUID is generated for the same file with the same options.
63

clang/test/Driver/hip-cuid.hip

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: amdgpu-registered-target
3-
41
// Check invalid -fuse-cuid= option.
52

63
// RUN: not %clang -### -x hip \
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: amdgpu-registered-target
3-
41
// RUN: %clang -### -nogpulib -nogpuinc -c %s 2>&1 | FileCheck %s
52

63
// CHECK: {{.*}}clang{{.*}}"-target-cpu" "gfx906"

clang/test/Driver/hip-device-compile.hip

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: amdgpu-registered-target
3-
41
// If -emit-llvm and/or -S is used in device only compilation,
52
// the output should not be bundled, except --gpu-bundle-output
63
// is specified.

clang/test/Driver/hip-device-libs.hip

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: amdgpu-registered-target
3-
41
// Test if oclc_daz_opt_on or if oclc_daz_opt_off is linked depending on
52
// expected denormal mode.
63

clang/test/Driver/hip-fpie-option.hip

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: amdgpu-registered-target, default-pie-on-linux
1+
// REQUIRES: default-pie-on-linux
22

33
// -fPIC and -fPIE only affects host relocation model.
44
// device compilation always uses PIC.

clang/test/Driver/hip-gsplit-dwarf-options.hip

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: zlib, amdgpu-registered-target
1+
// REQUIRES: zlib
22

33
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -c \
44
// RUN: --offload-arch=gfx906:xnack+ %s -nogpulib -nogpuinc \

clang/test/Driver/hip-gz-options.hip

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: zlib, amdgpu-registered-target
1+
// REQUIRES: zlib
22

33
// RUN: %clang -### --target=x86_64-unknown-linux-gnu \
44
// RUN: --offload-arch=gfx906 %s -nogpulib -nogpuinc \

clang/test/Driver/hip-host-cpu-features.hip

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: amdgpu-registered-target
3-
41
// RUN: %clang -### -c --target=x86_64-linux-gnu -march=znver2 --cuda-gpu-arch=gfx803 -nogpuinc -nogpulib %s 2>&1 | FileCheck %s -check-prefix=HOSTCPU
52
// RUN: %clang -### -c --target=x86_64-linux-gnu -msse3 --cuda-gpu-arch=gfx803 -nogpuinc -nogpulib %s 2>&1 | FileCheck %s -check-prefix=HOSTSSE3
63
// 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

clang/test/Driver/hip-include-path.hip

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// REQUIRES: x86-registered-target
2-
// REQUIRES: amdgpu-registered-target
31
// REQUIRES: libgcc
42
// UNSUPPORTED: system-windows
53

0 commit comments

Comments
 (0)