File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
// REQUIRES: comgr-has-spirv
2
2
// COM: Same as spirv-translator but with the cache
3
+ // RUN: rm -fr %t.cache
3
4
4
5
// COM: Generate a spirv-targeted LLVM IR file from an OpenCL kernel
5
6
// RUN: clang -c -emit-llvm --target=spirv64 %S/spirv-translator.cl -o %t.bc
11
12
// RUN: export AMD_COMGR_CACHE=1
12
13
// RUN: AMD_COMGR_CACHE_DIR=%t.cache spirv-translator %t.spv -o %t.translated.bc
13
14
// RUN: COUNT=$(ls "%t.cache" | wc -l)
14
- // RUN: [ 3 -eq $COUNT ]
15
+ // RUN: [ 2 -eq $COUNT ]
15
16
16
17
// COM: Run again and check that the cache contents haven't changed
17
18
// RUN: AMD_COMGR_CACHE_DIR=%t.cache spirv-translator %t.spv -o %t.translated.again.bc
18
19
// RUN: COUNT=$(ls "%t.cache" | wc -l)
19
- // RUN: [ 3 -eq $COUNT ]
20
+ // RUN: [ 2 -eq $COUNT ]
20
21
21
22
// COM: Dissasemble LLVM IR bitcode to LLVM IR text
22
23
// RUN: llvm-dis %t.translated.bc -o - | FileCheck %S/spirv-translator.cl
You can’t perform that action at this time.
0 commit comments