Skip to content

Commit 2644c66

Browse files
committed
[OpenMP][LIT] Fix amdgpu-openmp-toolchain.c test case
This test was XFAILed in 4df190. Current patch fixes and restores it. Change-Id: I6c7f29f786bdfbb29d1b36e8f1bd30bcc554f6a2
1 parent 4df1904 commit 2644c66

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

clang/test/Driver/amdgpu-openmp-toolchain.c

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// XFAIL: *
21
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
32
// 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 \
43
// RUN: | FileCheck %s
@@ -18,12 +17,12 @@
1817
// CHECK-PHASES: 0: input, "[[INPUT:.+]]", c, (host-openmp)
1918
// CHECK-PHASES: 1: preprocessor, {0}, cpp-output, (host-openmp)
2019
// 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
2726
// CHECK-PHASES: 9: clang-offload-packager, {8}, image, (device-openmp)
2827
// CHECK-PHASES: 10: offload, "host-openmp (x86_64-unknown-linux-gnu)" {2}, "device-openmp (x86_64-unknown-linux-gnu)" {9}, ir
2928
// CHECK-PHASES: 11: backend, {10}, assembler, (host-openmp)
@@ -95,7 +94,7 @@
9594

9695
// RUN: %clang -### -target x86_64-pc-linux-gnu -fopenmp --offload-arch=gfx90a:sramecc-:xnack+ \
9796
// 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"
9998
// CHECK-TARGET-ID: clang-offload-packager{{.*}}arch=gfx90a:sramecc-:xnack+,kind=openmp
10099

101100
// RUN: not %clang -### -target x86_64-pc-linux-gnu -fopenmp --offload-arch=gfx90a,gfx90a:xnack+ \

0 commit comments

Comments
 (0)