| 1 |
// REQUIRES: x86-registered-target |
| 2 |
// REQUIRES: amdgpu-registered-target |
| 3 |
// UNSUPPORTED: system-windows |
| 4 |
|
| 5 |
// Check no temporary files or directores are left after compilation. |
| 6 |
// RUN: rm -rf %t/mytmp |
| 7 |
// RUN: mkdir -p %t/mytmp |
| 8 |
// RUN: env TMP="%t/mytmp" TMPDIR="%t/mytmp" %clang --target=x86_64-linux-gnu -nogpulib -nogpuinc \ |
| 9 |
// RUN: --rocm-path=%S/Inputs/rocm -nostdinc -nostdlib -c \ |
| 10 |
// RUN: --offload-arch=gfx1030 -emit-llvm -v %s 2>&1 | \ |
| 11 |
// RUN: FileCheck -check-prefixes=CHECK -DOUTPUT_PATH="%t%{fs-sep}mytmp%{fs-sep}" %s |
| 12 |
// RUN: ls %t/mytmp >%t/mytmp.txt 2>&1 |
| 13 |
// RUN: touch %t/empty.txt |
| 14 |
// RUN: diff %t/mytmp.txt %t/empty.txt |
| 15 |
|
| 16 |
// CHECK: -o {{"?}}[[OUTPUT_PATH]]hip-temps-linux-gfx1030-{{.*}}.bc{{"?}} |
| 17 |
|
| 18 |
int main() {} |