File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 11// REQUIRES: comgr-has-spirv
2+ // XFAIL: *
23
34// COM: Generate a debuginfo SPIR-V file from a HIP kernel
45// RUN: clang -x hip --offload-arch=amdgcnspirv -nogpulib -nogpuinc \
56// RUN: --no-gpu-bundle-output --offload-device-only -O3 %s -o %t.dbg.spv -g
67
78// COM: Compile debuginfo SPIR-V source to a relocatable
89// RUN: AMD_COMGR_EMIT_VERBOSE_LOGS=1 AMD_COMGR_REDIRECT_LOGS=stdout \
9- // RUN: spirv-to-reloc %t.dbg.spv %t.dbg.o | FileCheck \
10+ // RUN: spirv-to-reloc %t.dbg.spv %t.dbg.o | FileCheck --dump-input-filter all \
1011// RUN: -check-prefix=CHECK-DBG %s
1112
1213// COM: Check that debuginfo SPIR-V flags are correctly extracted
Original file line number Diff line number Diff line change 33// COM: Generate a SPIR-V file from a HIP kernel
44// RUN: clang -x hip --offload-arch=amdgcnspirv -nogpulib -nogpuinc \
55// RUN: --no-gpu-bundle-output --offload-device-only -O3 %s -o %t.spv \
6- // RUN: -fno-rounding-math -fvisibility=hidden -O3 -fno-autolink \
7- // RUN: -fexceptions -fcolor-diagnostics
6+ // RUN: -fvisibility=hidden -fno-autolink -fexceptions -fcolor-diagnostics
87
98// COM: Compile SPIR-V source to a relocatable
10- // RUN: AMD_COMGR_EMIT_VERBOSE_LOGS=1 AMD_COMGR_REDIRECT_LOGS=stdout \
11- // RUN: spirv-to-reloc %t.spv %t.o | FileCheck %s
12-
13- // CHECK: ActionKind: AMD_COMGR_ACTION_COMPILE_SPIRV_TO_RELOCATABLE
14-
15- // COM: Check translation
16- // CHECK: SPIR-V Translation: amd-llvm-spirv -r --spirv-target-env=CL2.0 {{.*}}
9+ // RUN: AMD_COMGR_EMIT_VERBOSE_LOGS=1 AMD_COMGR_REDIRECT_LOGS=spirv-flags.txt \
10+ // RUN: spirv-to-reloc %t.spv %t.o
1711
1812// COM: Check that SPIR-V flags are correctly extracted
19- // CHECK: Compilation Args: {{.*}} "-Xclang" "-fcolor-diagnostics" "-Xclang" "-fexceptions" "-Xclang" "-fno-threadsafe-statics" "-Xclang" "-fvisibility=hidden" "-Xclang" "-fconvergent-functions" "-Xclang" "-ffp-contract=fast-honor-pragmas" "-Xclang" "-fno-experimental-relative-c++-abi-vtables" "-Xclang" "-O3" "-Xclang" "-fno-autolink" "-Xclang" "-finline-functions" "-Xclang" "-mcode-object-version=5"
13+ // RUN: grep '\-fvisibility=hidden' spirv-flags.txt
14+ // RUN: grep '\-fno-autolink' spirv-flags.txt
15+ // RUN: grep '\-fexceptions' spirv-flags.txt
16+ // RUN: grep '\-fcolor-diagnostics' spirv-flags.txt
17+ // RUN: grep '\-O3' spirv-flags.txt
18+ // RUN: grep '\-mcode-object-version=5' spirv-flags.txt
19+
20+ // RUN: rm spirv-flags.txt
2021
2122#include < cstdlib>
2223
You can’t perform that action at this time.
0 commit comments