|
1 | | -// XFAIL: * |
2 | 1 | // RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \ |
3 | 2 | // RUN: -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx906 --no-opaque-offload-linker --libomptarget-amdgpu-bc-path=%S/Inputs/hip_dev_lib -nogpulib %s 2>&1 \ |
4 | 3 | // RUN: | FileCheck %s |
|
18 | 17 | // CHECK-PHASES: 0: input, "[[INPUT:.+]]", c, (host-openmp) |
19 | 18 | // CHECK-PHASES: 1: preprocessor, {0}, cpp-output, (host-openmp) |
20 | 19 | // CHECK-PHASES: 2: compiler, {1}, ir, (host-openmp) |
21 | | -// CHECK-PHASES: 3: input, "[[INPUT]]", c, (device-openmp) |
22 | | -// CHECK-PHASES: 4: preprocessor, {3}, cpp-output, (device-openmp) |
23 | | -// CHECK-PHASES: 5: compiler, {4}, ir, (device-openmp) |
24 | | -// CHECK-PHASES: 6: offload, "host-openmp (x86_64-unknown-linux-gnu)" {2}, "device-openmp (amdgcn-amd-amdhsa)" {5}, ir |
25 | | -// CHECK-PHASES: 7: backend, {6}, ir, (device-openmp) |
26 | | -// CHECK-PHASES: 8: offload, "device-openmp (amdgcn-amd-amdhsa)" {7}, ir |
| 20 | +// CHECK-PHASES: 3: input, "[[INPUT]]", c, (device-openmp, gfx906) |
| 21 | +// CHECK-PHASES: 4: preprocessor, {3}, cpp-output, (device-openmp, gfx906) |
| 22 | +// CHECK-PHASES: 5: compiler, {4}, ir, (device-openmp, gfx906) |
| 23 | +// CHECK-PHASES: 6: offload, "host-openmp (x86_64-unknown-linux-gnu)" {2}, "device-openmp (amdgcn-amd-amdhsa:gfx906)" {5}, ir |
| 24 | +// CHECK-PHASES: 7: backend, {6}, ir, (device-openmp, gfx906) |
| 25 | +// CHECK-PHASES: 8: offload, "device-openmp (amdgcn-amd-amdhsa:gfx906)" {7}, ir |
27 | 26 | // CHECK-PHASES: 9: clang-offload-packager, {8}, image, (device-openmp) |
28 | 27 | // CHECK-PHASES: 10: offload, "host-openmp (x86_64-unknown-linux-gnu)" {2}, "device-openmp (x86_64-unknown-linux-gnu)" {9}, ir |
29 | 28 | // CHECK-PHASES: 11: backend, {10}, assembler, (host-openmp) |
|
95 | 94 |
|
96 | 95 | // RUN: %clang -### -target x86_64-pc-linux-gnu -fopenmp --offload-arch=gfx90a:sramecc-:xnack+ \ |
97 | 96 | // RUN: -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-TARGET-ID |
98 | | -// CHECK-TARGET-ID: "-cc1" "-triple" "amdgcn-amd-amdhsa" {{.*}} "-target-cpu" "gfx90a" "-target-feature" "-sramecc" "-target-feature" "+xnack" |
| 97 | +// CHECK-TARGET-ID: "-cc1" "-triple" "amdgcn-amd-amdhsa" {{.*}} "-target-cpu" "gfx90a:sramecc-:xnack+" "-target-feature" "-sramecc" "-target-feature" "+xnack" |
99 | 98 | // CHECK-TARGET-ID: clang-offload-packager{{.*}}arch=gfx90a:sramecc-:xnack+,kind=openmp |
100 | 99 |
|
101 | 100 | // RUN: not %clang -### -target x86_64-pc-linux-gnu -fopenmp --offload-arch=gfx90a,gfx90a:xnack+ \ |
|
0 commit comments