Mercurial > hg > CbC > CbC_llvm
comparison test/ThinLTO/X86/empty_module_with_cache.ll @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 1172e4bd9c6f |
children |
comparison
equal
deleted
inserted
replaced
120:1172e4bd9c6f | 121:803732b1fca8 |
---|---|
6 ; RUN: llvm-lto -thinlto-action=run %t2.bc %t.bc -exported-symbol=main -thinlto-cache-dir %t.cache | 6 ; RUN: llvm-lto -thinlto-action=run %t2.bc %t.bc -exported-symbol=main -thinlto-cache-dir %t.cache |
7 ; RUN: ls %t.cache/llvmcache.timestamp | 7 ; RUN: ls %t.cache/llvmcache.timestamp |
8 ; RUN: ls %t.cache | count 3 | 8 ; RUN: ls %t.cache | count 3 |
9 | 9 |
10 ; Verify that enabling caching is working with llvm-lto2 | 10 ; Verify that enabling caching is working with llvm-lto2 |
11 ; RUN: rm -Rf %t.cache && mkdir %t.cache | 11 ; RUN: rm -Rf %t.cache |
12 ; RUN: llvm-lto2 -o %t.o %t2.bc %t.bc -cache-dir %t.cache \ | 12 ; RUN: llvm-lto2 run -o %t.o %t2.bc %t.bc -cache-dir %t.cache \ |
13 ; RUN: -r=%t2.bc,_main,plx | 13 ; RUN: -r=%t2.bc,_main,plx |
14 ; RUN: ls %t.cache | count 2 | 14 ; RUN: ls %t.cache | count 2 |
15 | 15 |
16 ; Same, but without hash, the index will be empty and caching should not happen | 16 ; Same, but without hash, the index will be empty and caching should not happen |
17 | 17 |
23 ; RUN: llvm-lto -thinlto-action=run %t2.bc %t.bc -exported-symbol=main -thinlto-cache-dir %t.cache | 23 ; RUN: llvm-lto -thinlto-action=run %t2.bc %t.bc -exported-symbol=main -thinlto-cache-dir %t.cache |
24 ; RUN: ls %t.cache/llvmcache.timestamp | 24 ; RUN: ls %t.cache/llvmcache.timestamp |
25 ; RUN: ls %t.cache | count 1 | 25 ; RUN: ls %t.cache | count 1 |
26 | 26 |
27 ; Verify that caching is disabled for module without hash, with llvm-lto2 | 27 ; Verify that caching is disabled for module without hash, with llvm-lto2 |
28 ; RUN: rm -Rf %t.cache && mkdir %t.cache | 28 ; RUN: rm -Rf %t.cache |
29 ; RUN: llvm-lto2 -o %t.o %t2.bc %t.bc -cache-dir %t.cache \ | 29 ; RUN: llvm-lto2 run -o %t.o %t2.bc %t.bc -cache-dir %t.cache \ |
30 ; RUN: -r=%t2.bc,_main,plx | 30 ; RUN: -r=%t2.bc,_main,plx |
31 ; RUN: ls %t.cache | count 0 | 31 ; RUN: ls %t.cache | count 0 |
32 | 32 |
33 | 33 |
34 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" | 34 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" |