|
35 | 35 | /// ###########################################################################
|
36 | 36 |
|
37 | 37 | /// Check -Xopenmp-target=powerpc64le-ibm-linux-gnu -mcpu=pwr7 is passed when compiling for the device.
|
38 |
| -// RUN: %clang -### -fopenmp=libomp -fopenmp-targets=powerpc64le-ibm-linux-gnu -Xopenmp-target=powerpc64le-ibm-linux-gnu -mcpu=pwr7 %s 2>&1 \ |
| 38 | +// RUN: %clang -### -no-canonical-prefixes -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 | 41 | // CHK-FOPENMP-EQ-TARGET: clang{{.*}} "-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 |
| -// RUN: %clang -### -fopenmp=libomp -fopenmp-targets=powerpc64le-ibm-linux-gnu -Xopenmp-target -mcpu=pwr7 %s 2>&1 \ |
| 46 | +// RUN: %clang -### -no-canonical-prefixes -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 | 49 | // CHK-FOPENMP-TARGET: clang{{.*}} "-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 |
| -// RUN: %clang -### -fopenmp=libomp -fopenmp-targets=powerpc64le-ibm-linux-gnu --target=powerpc64le-ibm-linux-gnu -mcpu=pwr7 %s 2>&1 \ |
| 54 | +// RUN: %clang -### -no-canonical-prefixes -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 | 57 | // CHK-FOPENMP-MCPU-TO-SAME-TRIPLE: clang{{.*}} "-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 |
| -// RUN: not %clang -### -fopenmp=libomp -fopenmp-targets=nvptx64-nvidia-cuda --target=powerpc64le-ibm-linux-gnu -march=pwr7 %s 2>&1 \ |
| 62 | +// RUN: not %clang -### -no-canonical-prefixes -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 | 65 | // CHK-FOPENMP-MARCH-TO-GPU-NOT: clang{{.*}} "-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 |
| -// RUN: not %clang -### -fopenmp=libomp -fopenmp-targets=x86_64-unknown-linux-gnu --target=powerpc64le-ibm-linux-gnu -march=pwr7 %s 2>&1 \ |
| 70 | +// RUN: not %clang -### -no-canonical-prefixes -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 | 73 | // CHK-FOPENMP-MARCH-TO-X86-NOT: clang{{.*}} "-target-cpu" "pwr7" {{.*}}"-fopenmp-is-target-device"
|
74 | 74 |
|
75 | 75 | /// ###########################################################################
|
76 | 76 |
|
77 | 77 | /// Check -Xopenmp-target triggers error when multiple triples are used.
|
78 |
| -// RUN: not %clang -### -fopenmp=libomp -fopenmp-targets=powerpc64le-ibm-linux-gnu,powerpc64le-unknown-linux-gnu -Xopenmp-target -mcpu=pwr8 %s 2>&1 \ |
| 78 | +// RUN: not %clang -### -no-canonical-prefixes -fopenmp=libomp -fopenmp-targets=powerpc64le-ibm-linux-gnu,powerpc64le-unknown-linux-gnu -Xopenmp-target -mcpu=pwr8 %s 2>&1 \ |
79 | 79 | // RUN: | FileCheck -check-prefix=CHK-FOPENMP-TARGET-AMBIGUOUS-ERROR %s
|
80 | 80 |
|
81 | 81 | // CHK-FOPENMP-TARGET-AMBIGUOUS-ERROR: clang{{.*}} error: cannot deduce implicit triple value for -Xopenmp-target, specify triple using -Xopenmp-target=<triple>
|
82 | 82 |
|
83 | 83 | /// ###########################################################################
|
84 | 84 |
|
85 | 85 | /// Check -Xopenmp-target triggers error when an option requiring arguments is passed to it.
|
86 |
| -// RUN: not %clang -### -fopenmp=libomp -fopenmp-targets=powerpc64le-ibm-linux-gnu -Xopenmp-target -Xopenmp-target -mcpu=pwr8 %s 2>&1 \ |
| 86 | +// RUN: not %clang -### -no-canonical-prefixes -fopenmp=libomp -fopenmp-targets=powerpc64le-ibm-linux-gnu -Xopenmp-target -Xopenmp-target -mcpu=pwr8 %s 2>&1 \ |
87 | 87 | // RUN: | FileCheck -check-prefix=CHK-FOPENMP-TARGET-NESTED-ERROR %s
|
88 | 88 |
|
89 | 89 | // CHK-FOPENMP-TARGET-NESTED-ERROR: clang{{.*}} error: invalid -Xopenmp-target argument: '-Xopenmp-target -Xopenmp-target', options requiring arguments are unsupported
|
|
0 commit comments