|
38 | 38 | // RUN: %clang -### -fopenmp=libomp -fopenmp-targets=powerpc64le-ibm-linux-gnu -Xopenmp-target=powerpc64le-ibm-linux-gnu -mcpu=pwr7 %s 2>&1 \
|
39 | 39 | // RUN: | FileCheck -check-prefix=CHK-FOPENMP-EQ-TARGET %s
|
40 | 40 |
|
41 |
| -// CHK-FOPENMP-EQ-TARGET: clang{{.*}} "-target-cpu" "pwr7" {{.*}}"-fopenmp-is-target-device" |
| 41 | +// CHK-FOPENMP-EQ-TARGET: "-target-cpu" "pwr7" {{.*}}"-fopenmp-is-target-device" |
42 | 42 |
|
43 | 43 | /// ###########################################################################
|
44 | 44 |
|
45 | 45 | /// Check -Xopenmp-target -mcpu=pwr7 is passed when compiling for the device.
|
46 | 46 | // RUN: %clang -### -fopenmp=libomp -fopenmp-targets=powerpc64le-ibm-linux-gnu -Xopenmp-target -mcpu=pwr7 %s 2>&1 \
|
47 | 47 | // RUN: | FileCheck -check-prefix=CHK-FOPENMP-TARGET %s
|
48 | 48 |
|
49 |
| -// CHK-FOPENMP-TARGET: clang{{.*}} "-target-cpu" "pwr7" {{.*}}"-fopenmp-is-target-device" |
| 49 | +// CHK-FOPENMP-TARGET: "-target-cpu" "pwr7" {{.*}}"-fopenmp-is-target-device" |
50 | 50 |
|
51 | 51 | /// ##########################################################################
|
52 | 52 |
|
53 | 53 | /// Check -mcpu=pwr7 is passed to the same triple.
|
54 | 54 | // RUN: %clang -### -fopenmp=libomp -fopenmp-targets=powerpc64le-ibm-linux-gnu --target=powerpc64le-ibm-linux-gnu -mcpu=pwr7 %s 2>&1 \
|
55 | 55 | // RUN: | FileCheck -check-prefix=CHK-FOPENMP-MCPU-TO-SAME-TRIPLE %s
|
56 | 56 |
|
57 |
| -// CHK-FOPENMP-MCPU-TO-SAME-TRIPLE: clang{{.*}} "-target-cpu" "pwr7" {{.*}}"-fopenmp-is-target-device" |
| 57 | +// CHK-FOPENMP-MCPU-TO-SAME-TRIPLE: "-target-cpu" "pwr7" {{.*}}"-fopenmp-is-target-device" |
58 | 58 |
|
59 | 59 | /// ##########################################################################
|
60 | 60 |
|
61 | 61 | /// Check -march=pwr7 is NOT passed to nvptx64-nvidia-cuda.
|
62 | 62 | // RUN: not %clang -### -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda --target=powerpc64le-ibm-linux-gnu -march=pwr7 %s 2>&1 \
|
63 | 63 | // RUN: | FileCheck -check-prefix=CHK-FOPENMP-MARCH-TO-GPU %s
|
64 | 64 |
|
65 |
| -// CHK-FOPENMP-MARCH-TO-GPU-NOT: clang{{.*}} "-target-cpu" "pwr7" {{.*}}"-fopenmp-is-target-device" |
| 65 | +// CHK-FOPENMP-MARCH-TO-GPU-NOT: "-target-cpu" "pwr7" {{.*}}"-fopenmp-is-target-device" |
66 | 66 |
|
67 | 67 | /// ###########################################################################
|
68 | 68 |
|
69 | 69 | /// Check -march=pwr7 is NOT passed to x86_64-unknown-linux-gnu.
|
70 | 70 | // RUN: not %clang -### -fopenmp=libomp -fopenmp-targets=x86_64-unknown-linux-gnu --target=powerpc64le-ibm-linux-gnu -march=pwr7 %s 2>&1 \
|
71 | 71 | // RUN: | FileCheck -check-prefix=CHK-FOPENMP-MARCH-TO-X86 %s
|
72 | 72 |
|
73 |
| -// CHK-FOPENMP-MARCH-TO-X86-NOT: clang{{.*}} "-target-cpu" "pwr7" {{.*}}"-fopenmp-is-target-device" |
| 73 | +// CHK-FOPENMP-MARCH-TO-X86-NOT: "-target-cpu" "pwr7" {{.*}}"-fopenmp-is-target-device" |
74 | 74 |
|
75 | 75 | /// ###########################################################################
|
76 | 76 |
|
|
0 commit comments