Skip to content

Commit

Permalink
Do not use spvgen.so in cache-creator tests
Browse files Browse the repository at this point in the history
amdllpc does not use spvgen.so anymore.
This fixes test failures.
  • Loading branch information
kuhar authored and JaxLinAMD committed May 17, 2022
1 parent 685edbe commit 041b544
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tools/cache_creator/test/BasicCacheCreation.spvasm
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
; RUN: split-file %s %t

; Compile the vertex shader into a relocatable ELF. Save the compilation output to a log so that other test can refer to it.
; RUN: amdllpc %t/vert.spvasm %gfxip %spvgen %reloc -v -o %t.vert.elf > %t.vert.amdllpc.log 2>&1 \
; RUN: amdllpc %t/vert.spvasm %gfxip %reloc -v -o %t.vert.elf > %t.vert.amdllpc.log 2>&1 \
; RUN: && cat %t.vert.amdllpc.log | FileCheck --check-prefix=LLPC-VERT %s
; LLPC-VERT-LABEL: {{^// LLPC}} SPIRV-to-LLVM translation results
; LLPC-VERT-LABEL: {{^=====}} AMDLLPC SUCCESS =====

; Compile the fragment shader into a relocatable ELF. Save the compilation output to a log so that other test can refer to it.
; RUN: amdllpc %t/frag.spvasm %gfxip %spvgen %reloc -v -o %t.frag.elf > %t.frag.amdllpc.log 2>&1 \
; RUN: amdllpc %t/frag.spvasm %gfxip %reloc -v -o %t.frag.elf > %t.frag.amdllpc.log 2>&1 \
; RUN: && cat %t.frag.amdllpc.log | FileCheck --check-prefix=LLPC-FRAG %s
; LLPC-FRAG-LABEL: {{^// LLPC}} SPIRV-to-LLVM translation results
; LLPC-FRAG-LABEL: {{^=====}} AMDLLPC SUCCESS =====
Expand Down
2 changes: 1 addition & 1 deletion tools/cache_creator/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ configure_lit_site_cfg(
# You can execute test by building the `check-cache-creator` target, e.g., `ninja check-cache-creator`.
add_lit_testsuite(check-cache-creator "Running the XGL cache creator regression tests"
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS cache-creator cache-info amdllpc spvgen FileCheck count not split-file llvm-objdump llvm-readelf
DEPENDS cache-creator cache-info amdllpc FileCheck count not split-file llvm-objdump llvm-readelf
)
2 changes: 1 addition & 1 deletion tools/cache_creator/test/NonRelocatableShader.pipe
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
; Check that cache-creator handles non-relocatable ELFs (i.e., in full pipeline compilation).

; Compile the full pipeline to a non-relocatable ELF.
; RUN: amdllpc %spvgen -v %gfxip %s -o %t.elf | FileCheck -check-prefix=CHECK-LLPC %s
; RUN: amdllpc -v %gfxip %s -o %t.elf | FileCheck -check-prefix=CHECK-LLPC %s
; CHECK-LLPC: {{^// LLPC}} SPIRV-to-LLVM translation results
; CHECK-LLPC: AMDLLPC SUCCESS

Expand Down
2 changes: 1 addition & 1 deletion tools/cache_creator/test/RunLitCommands.spvasm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; Check if lit is configured properly and that all basic tools run.
; RUN: amdllpc %s %gfxip %spvgen %reloc -v -o %t.elf | FileCheck --check-prefix=CHECK-LLPC %s
; RUN: amdllpc %s %gfxip %reloc -v -o %t.elf | FileCheck --check-prefix=CHECK-LLPC %s
; CHECK-LLPC: {{^// LLPC}} SPIRV-to-LLVM translation results
; CHECK-LLPC: AMDLLPC SUCCESS

Expand Down
1 change: 0 additions & 1 deletion tools/cache_creator/test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@

config.substitutions.append(('%PATH%', config.environment['PATH']))
config.substitutions.append(('%gfxip', '-gfxip=' + config.gfxip))
config.substitutions.append(('%spvgen', '-spvgen-dir=' + config.spvgen_dir))
config.substitutions.append(('%reloc', '-unlinked -enable-relocatable-shader-elf'))

tool_dirs = [config.cache_creator_tools_dir, config.amdllpc_dir, config.llvm_tools_dir]
Expand Down
1 change: 0 additions & 1 deletion tools/cache_creator/test/lit.site.cfg.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ config.llvm_assertions = "@LLVM_ENABLE_ASSERTIONS@"
config.cache_creator_tools_dir = "@CACHE_CREATOR_TOOLS_BINARY_DIR@"
config.amdllpc_dir = "@CACHE_CREATOR_AMDLLPC_DIR@"
config.gfxip = "@CACHE_CREATOR_DEFAULT_GFXIP@"
config.spvgen_dir = "@CACHE_CREATOR_SPVGEN_DIR@"
config.test_run_dir = "@CACHE_CREATOR_TEST_BINARY_DIR@"

# Support substitution of the tools_dir with user parameters. This is
Expand Down

0 comments on commit 041b544

Please sign in to comment.