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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 3 deletions
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

0 commit comments

Comments
 (0)