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