@@ -50,7 +50,9 @@ __attribute__((visibility("protected"), used)) int x;
5050// RUN: clang-linker-wrapper --host-triple=x86_64-unknown-linux-gnu --wrapper-verbose --dry-run --save-temps -O2 \
5151// RUN: --lto-in-process --linker-path=/usr/bin/ld %t.o -o a.out 2>&1 | FileCheck %s --check-prefix=AMDGPU-LTO-IN-PROC
5252// RUN: clang-linker-wrapper --host-triple=x86_64-unknown-linux-gnu --wrapper-verbose --dry-run --save-temps -O2 \
53- // RUN: --lto-debug-pass-manager --lto-print-pipeline-passes --linker-path=/usr/bin/ld %t.o -o a.out 2>&1 | FileCheck %s --check-prefix=AMDGPU-LTO-OPTS
53+ // RUN: --lto-debug-pass-manager --lto-print-pipeline-passes \
54+ // RUN: -offload-opt=--print-before=openmp-opt -offload-opt=--print-after=openmp-opt \
55+ // RUN: --linker-path=/usr/bin/ld %t.o -o a.out 2>&1 | FileCheck %s --check-prefix=AMDGPU-LTO-OPTS
5456
5557// AMDGPU-LTO-TEMPS-NOT: Linking bitcode files
5658// AMDGPU-LTO-TEMPS: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030 -O2 -Wl,--no-undefined {{.*}}.o -save-temps
@@ -61,6 +63,8 @@ __attribute__((visibility("protected"), used)) int x;
6163// AMDGPU-LTO-OPTS: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030 -O2 -Wl,--no-undefined {{.*}}.o -save-temps -Wl,--save-temps
6264// AMDGPU-LTO-OPTS-SAME: -Wl,--lto-debug-pass-manager
6365// AMDGPU-LTO-OPTS-SAME: -Wl,--lto-print-pipeline-passes
66+ // AMDGPU-LTO-OPTS-SAME: -Wl,--mllvm=-print-before=openmp-opt
67+ // AMDGPU-LTO-OPTS-SAME: -Wl,--mllvm=-print-after=openmp-opt
6468
6569// RUN: clang-offload-packager -o %t.out \
6670// RUN: --image=file=%t.elf.o,kind=openmp,triple=x86_64-unknown-linux-gnu \
0 commit comments