[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.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
// REQUIRES: system-linux
|
||||
// REQUIRES: x86-registered-target
|
||||
// REQUIRES: amdgpu-registered-target
|
||||
// REQUIRES: shell
|
||||
|
||||
// RUN: mkdir -p %t
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// REQUIRES: amdgpu-registered-target
|
||||
// Check that appropriate macros are defined for every supported AMDGPU
|
||||
// "-target" and "-mcpu" options.
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
// REQUIRES: system-linux
|
||||
// REQUIRES: x86-registered-target
|
||||
// REQUIRES: amdgpu-registered-target
|
||||
// REQUIRES: shell
|
||||
|
||||
// RUN: mkdir -p %t
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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".
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// REQUIRES: zlib && !zstd
|
||||
// REQUIRES: x86-registered-target
|
||||
// UNSUPPORTED: target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}}
|
||||
|
||||
//
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// REQUIRES: zstd
|
||||
// REQUIRES: x86-registered-target
|
||||
// UNSUPPORTED: target={{.*}}-darwin{{.*}}, target={{.*}}-aix{{.*}}, target={{.*}}-zos{{.*}}
|
||||
|
||||
//
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// REQUIRES: x86-registered-target
|
||||
// REQUIRES: nvptx-registered-target
|
||||
// This tests uses the PATH environment variable.
|
||||
// REQUIRES: !system-windows
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 | \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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,4 +1,3 @@
|
||||
// REQUIRES: aarch64-registered-target
|
||||
// RUN: %clang %s -target arm64e-apple-driverkit -### 2>&1 | FileCheck %s
|
||||
|
||||
// CHECK: "-target-cpu" "apple-a12"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// REQUIRES: x86-registered-target
|
||||
// RUN: %clang %s -target x86_64-apple-driverkit19.0 -fsyntax-only
|
||||
|
||||
#if __cplusplus != 201703L
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// REQUIRES: x86-registered-target
|
||||
// UNSUPPORTED: system-windows
|
||||
// Windows is unsupported because we use the Unix path separator `\`.
|
||||
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
// REQUIRES: amdgpu-registered-target
|
||||
|
||||
|
||||
// Check bundle ID for code object version 4.
|
||||
|
||||
// RUN: not %clang -### --target=x86_64-linux-gnu \
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
// REQUIRES: x86-registered-target
|
||||
// REQUIRES: amdgpu-registered-target
|
||||
|
||||
// Check invalid -fuse-cuid= option.
|
||||
|
||||
// RUN: not %clang -### -x 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"
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// REQUIRES: x86-registered-target
|
||||
// REQUIRES: amdgpu-registered-target
|
||||
// REQUIRES: libgcc
|
||||
// UNSUPPORTED: system-windows
|
||||
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
// REQUIRES: zlib && !zstd
|
||||
// REQUIRES: x86-registered-target
|
||||
// REQUIRES: amdgpu-registered-target
|
||||
|
||||
// Test compress bundled bitcode.
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
// REQUIRES: zstd
|
||||
// REQUIRES: x86-registered-target
|
||||
// REQUIRES: amdgpu-registered-target
|
||||
|
||||
// Test compress bundled bitcode.
|
||||
|
||||
|
||||
@@ -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-WARN-ATOMIC-NOT: clang{{.*}} "-triple" "x86_64-unknown-linux-gnu" {{.*}} "-Wno-error=atomic-alignment"
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 | \
|
||||
|
||||
@@ -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"{{.*}}
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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+ \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// REQUIRES: system-windows, amdgpu-registered-target
|
||||
// REQUIRES: system-windows
|
||||
|
||||
// RUN: %clang -### --target=x86_64-pc-windows-msvc \
|
||||
// RUN: -x hip \
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// REQUIRES: x86-registered-target
|
||||
// UNSUPPORTED: system-windows
|
||||
|
||||
// RUN: %clang -### -target x86_64-linux-gnu --offload=spirv64 \
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// REQUIRES: x86-registered-target
|
||||
// UNSUPPORTED: system-windows
|
||||
|
||||
// RUN: %clang -### -target x86_64-linux-gnu --offload=spirv64 \
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// REQUIRES: x86-registered-target
|
||||
// UNSUPPORTED: system-windows
|
||||
|
||||
// RUN: %clang -### -x hip -target x86_64-linux-gnu --offload=spirv64 \
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// REQUIRES: x86-registered-target
|
||||
// UNSUPPORTED: system-windows
|
||||
|
||||
// RUN: %clang -### -target x86_64-linux-gnu --offload=spirv64 \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// REQUIRES: x86-registered-target
|
||||
// UNSUPPORTED: system-windows
|
||||
|
||||
// RUN: not %clang -### -x hip --target=x86_64-linux-gnu --offload= \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user