|
1 | 1 | // Check CUID generated by hash. |
2 | 2 | // The same CUID is generated for the same file with the same options. |
3 | 3 |
|
| 4 | +// RUN: cd %S |
| 5 | + |
4 | 6 | // RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver \ |
5 | 7 | // RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \ |
6 | | -// RUN: %S/Inputs/hip_multiple_inputs/a.cu >%t.out 2>&1 |
| 8 | +// RUN: Inputs/hip_multiple_inputs/a.cu >%t.out 2>&1 |
7 | 9 |
|
8 | 10 | // RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver \ |
9 | 11 | // RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \ |
10 | | -// RUN: %S/Inputs/hip_multiple_inputs/a.cu >>%t.out 2>&1 |
| 12 | +// RUN: Inputs/hip_multiple_inputs/a.cu >>%t.out 2>&1 |
11 | 13 |
|
12 | 14 | // RUN: FileCheck %s -check-prefixes=SAME -input-file %t.out |
13 | 15 |
|
|
16 | 18 |
|
17 | 19 | // RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu -DX=1 --no-offload-new-driver \ |
18 | 20 | // RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \ |
19 | | -// RUN: %S/Inputs/hip_multiple_inputs/a.cu >%t.out 2>&1 |
| 21 | +// RUN: Inputs/hip_multiple_inputs/a.cu >%t.out 2>&1 |
20 | 22 |
|
21 | 23 | // RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu -DX=2 --no-offload-new-driver \ |
22 | 24 | // RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \ |
23 | | -// RUN: %S/Inputs/../Inputs/hip_multiple_inputs/a.cu >>%t.out 2>&1 |
| 25 | +// RUN: Inputs/../Inputs/hip_multiple_inputs/a.cu >>%t.out 2>&1 |
24 | 26 |
|
25 | 27 | // RUN: FileCheck %s -check-prefixes=DIFF -input-file %t.out |
26 | 28 |
|
27 | | -// SAME: "-cc1"{{.*}} "-target-cpu" "gfx906" {{.*}}"-cuid=[[CUID:[0-9a-f]+]]" |
| 29 | +// SAME: "-cc1"{{.*}} "-target-cpu" "gfx906" {{.*}}"-cuid=[[CUID:3c08c1ef86ef439d]]" |
28 | 30 | // SAME: "-cc1"{{.*}} "-target-cpu" "gfx906" {{.*}}"-cuid=[[CUID]]" |
29 | 31 |
|
30 | 32 | // DIFF: "-cc1"{{.*}} "-target-cpu" "gfx906" {{.*}}"-cuid=[[CUID:[0-9a-f]+]]" |
|
0 commit comments