|
19 | 19 | // COMMON-LABEL: "{{[^"]*}}clang{{[^"]*}}" "-cc1"
|
20 | 20 | // CLANG-SAME: "-internal-isystem" "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include/cuda_wrappers"
|
21 | 21 | // NOCLANG-NOT: "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include/cuda_wrappers"
|
22 |
| -// HIP-SAME: "-internal-isystem" "{{[^"]*}}Inputs/rocm/include" |
23 |
| -// NOHIP-NOT: "{{.*}}Inputs/rocm/include" |
| 22 | +// HIP-SAME: "-idirafter" "{{[^"]*}}Inputs/rocm/include" |
24 | 23 | // HIP-SAME: "-include" "__clang_hip_runtime_wrapper.h"
|
25 | 24 | // NOHIP-NOT: "-include" "__clang_hip_runtime_wrapper.h"
|
26 | 25 | // skip check of standard C++ include path
|
27 | 26 | // CLANG-SAME: "-internal-isystem" "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include"
|
28 | 27 | // NOCLANG-NOT: "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include"
|
| 28 | +// NOHIP-NOT: "{{.*}}Inputs/rocm/include" |
29 | 29 |
|
30 | 30 | // COMMON-LABEL: "{{[^"]*}}clang{{[^"]*}}" "-cc1"
|
31 | 31 | // CLANG-SAME: "-internal-isystem" "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include/cuda_wrappers"
|
32 | 32 | // NOCLANG-NOT: "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include/cuda_wrappers"
|
33 |
| -// HIP-SAME: "-internal-isystem" "{{[^"]*}}Inputs/rocm/include" |
34 |
| -// NOHIP-NOT: "{{.*}}Inputs/rocm/include" |
| 33 | +// HIP-SAME: "-idirafter" "{{[^"]*}}Inputs/rocm/include" |
35 | 34 | // HIP-SAME: "-include" "__clang_hip_runtime_wrapper.h"
|
36 | 35 | // NOHIP-NOT: "-include" "__clang_hip_runtime_wrapper.h"
|
37 | 36 | // skip check of standard C++ include path
|
38 | 37 | // CLANG-SAME: "-internal-isystem" "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include"
|
39 | 38 | // NOCLANG-NOT: "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include"
|
| 39 | +// NOHIP-NOT: "{{.*}}Inputs/rocm/include" |
40 | 40 |
|
41 | 41 | // RUN: %clang -c -### -target x86_64-unknown-linux-gnu --cuda-gpu-arch=gfx900 \
|
42 | 42 | // RUN: -std=c++11 --rocm-path=%S/Inputs/rocm -nogpulib %s 2>&1 \
|
|
45 | 45 | // ROCM35-LABEL: "{{[^"]*}}clang{{[^"]*}}" "-cc1"
|
46 | 46 | // ROCM35-NOT: "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include/cuda_wrappers"
|
47 | 47 | // ROCM35-SAME: "-internal-isystem" "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}"
|
48 |
| -// ROCM35-SAME: "-internal-isystem" "{{[^"]*}}Inputs/rocm/include" |
| 48 | +// ROCM35-SAME: "-idirafter" "{{[^"]*}}Inputs/rocm/include" |
49 | 49 | // ROCM35-NOT: "-include" "__clang_hip_runtime_wrapper.h"
|
50 | 50 | // skip check of standard C++ include path
|
51 | 51 | // ROCM35-SAME: "-internal-isystem" "{{[^"]*}}/lib{{[^"]*}}/clang/{{[^"]*}}/include"
|
0 commit comments