Skip to content

Commit a893c39

Browse files
author
Salinas, David
authored
[Comgr][Merge] Two dependent changes to fix spirv test (llvm#1317) (llvm#1365)
from row ROCm#19 in "Mainline for 6.5 Cherry-pick List" amd-staging commits: [Comgr][Cache] Fix broken test: spirv-translator-cached.cl · ROCm/llvm-project@51fa25b [Cache][SPIRV] Fix flacky test... again · ROCm/llvm-project@56cf45a
2 parents ca47f24 + a661302 commit a893c39

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

amd/comgr/test-lit/spirv-translator-cached.cl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,10 @@
1919
// RUN: COUNT=$(ls "%t.cache" | wc -l)
2020
// RUN: [ 2 -eq $COUNT ]
2121

22+
// COM: Run again and check that the cache contents haven't changed
23+
// RUN: AMD_COMGR_CACHE_DIR=%t.cache spirv-translator %t.spv -o %t.translated.again.bc
24+
// RUN: COUNT=$(ls "%t.cache" | wc -l)
25+
// RUN: [ 2 -eq $COUNT ]
26+
2227
// COM: Dissasemble LLVM IR bitcode to LLVM IR text
2328
// RUN: llvm-dis %t.translated.bc -o - | FileCheck %S/spirv-translator.cl

0 commit comments

Comments
 (0)