Skip to content

Commit 902bb31

Browse files
committed
[OpenMP] Fixes failing lit test
Removes check for removed flag -no-opaque-offload-linker after removing the opaque linker.
1 parent 614c73f commit 902bb31

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang/test/Driver/openmp-offload-infer.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp \
2-
// RUN: --no-opaque-offload-linker -nogpulib --offload-arch=sm_52 --offload-arch=gfx803 \
2+
// RUN: -nogpulib --offload-arch=sm_52 --offload-arch=gfx803 \
33
// RUN: --libomptarget-amdgpu-bc-path=%S/Inputs/hip_dev_lib/libomptarget-amdgpu-gfx803.bc \
44
// RUN: --libomptarget-nvptx-bc-path=%S/Inputs/libomptarget/libomptarget-nvptx-test.bc %s 2>&1 \
55
// RUN: | FileCheck %s
@@ -12,7 +12,7 @@
1212
// CHECK: clang-linker-wrapper{{.*}} "-o" "a.out"
1313

1414
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -ccc-print-bindings -fopenmp=libomp \
15-
// RUN: --no-opaque-offload-linker --offload-new-driver --offload-arch=sm_70 --offload-arch=gfx908:sramecc+:xnack- \
15+
// RUN: --offload-new-driver --offload-arch=sm_70 --offload-arch=gfx908:sramecc+:xnack- \
1616
// RUN: -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-NVIDIA-AMDGPU
1717

1818
// CHECK-NVIDIA-AMDGPU: "x86_64-unknown-linux-gnu" - "clang", inputs: ["[[INPUT:.+]]"], output: "[[HOST_BC:.+]]"
@@ -24,7 +24,7 @@
2424
// CHECK-NVIDIA-AMDGPU: "x86_64-unknown-linux-gnu" - "Offload::Linker", inputs: ["[[HOST_OBJ]]"], output: "a.out"
2525

2626
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -ccc-print-bindings -fopenmp=libomp --offload-new-driver \
27-
// RUN: --no-opaque-offload-linker --offload-arch=sm_52 --offload-arch=sm_70 -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-ARCH-BINDINGS
27+
// RUN: --offload-arch=sm_52 --offload-arch=sm_70 -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-ARCH-BINDINGS
2828

2929
// CHECK-ARCH-BINDINGS: "x86_64-unknown-linux-gnu" - "clang", inputs: ["[[INPUT:.*]]"], output: "[[HOST_BC:.*]]"
3030
// CHECK-ARCH-BINDINGS: "nvptx64-nvidia-cuda" - "clang", inputs: ["[[INPUT]]", "[[HOST_BC]]"], output: "[[DEVICE_BC_SM_52:.*]]"
@@ -36,13 +36,13 @@
3636
// CHECK-ARCH-BINDINGS: "x86_64-unknown-linux-gnu" - "Offload::Linker", inputs: ["[[HOST_OBJ]]"], output: "a.out"
3737

3838
// RUN: not %clang -### --target=x86_64-unknown-linux-gnu -ccc-print-bindings -fopenmp=libomp \
39-
// RUN: --no-opaque-offload-linker --offload-arch=sm_70 --offload-arch=gfx908 --offload-arch=skylake \
39+
// RUN: --offload-arch=sm_70 --offload-arch=gfx908 --offload-arch=skylake \
4040
// RUN: -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-FAILED
4141

4242
// CHECK-FAILED: error: failed to deduce triple for target architecture 'skylake'; specify the triple using '-fopenmp-targets' and '-Xopenmp-target' instead
4343

4444
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -ccc-print-bindings -fopenmp=libomp \
45-
// RUN: --no-opaque-offload-linker --offload-arch=sm_70 --offload-arch=gfx908 -fno-openmp \
45+
// RUN: --offload-arch=sm_70 --offload-arch=gfx908 -fno-openmp \
4646
// RUN: -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-DISABLED
4747

4848
// CHECK-DISABLED-NOT: "nvptx64-nvidia-cuda" - "clang",

0 commit comments

Comments
 (0)