llvm.org GIT mirror llvm / 929ae46
llvm/test/ExecutionEngine/MCJIT/load-object-a.ll: Fix not to use %t.cachedir/%p. %p is like X:\foo\bar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198926 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 6 years ago
1 changed file(s) with 13 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
0 ; REQUIRES: shell
11
22 ; This first line will generate the .o files for the next run line
3 ; RUN: rm -rf %t.cachedir
34 ; RUN: mkdir -p %t.cachedir
45 ; RUN: %lli_mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -enable-cache-manager -object-cache-dir=%t.cachedir %s
56
7 ; Collect generated objects.
8 ; RUN: rm -rf %t.cachedir2
9 ; RUN: mkdir -p %t.cachedir2
10 ; RUN: find %t.cachedir -type f -name 'multi-module-?.o' -exec mv -v '{}' %t.cachedir2 ';'
11
612 ; This line tests MCJIT object loading
7 ; RUN: %lli_mcjit -extra-object=%t.cachedir/%p/Inputs/multi-module-b.o -extra-object=%t.cachedir/%p/Inputs/multi-module-c.o %s
13 ; RUN: %lli_mcjit -extra-object=%t.cachedir2/multi-module-b.o -extra-object=%t.cachedir2/multi-module-c.o %s
14
15 ; RUN: rm -rf %t.cachedir3
16 ; RUN: mkdir -p %t.cachedir3
817
918 ; These lines put the object files into an archive
10 ; RUN: llvm-ar r %t.cachedir/%p/Inputs/load-object.a %t.cachedir/%p/Inputs/multi-module-b.o
11 ; RUN: llvm-ar r %t.cachedir/%p/Inputs/load-object.a %t.cachedir/%p/Inputs/multi-module-c.o
19 ; RUN: llvm-ar r %t.cachedir3/load-object.a %t.cachedir2/multi-module-b.o
20 ; RUN: llvm-ar r %t.cachedir3/load-object.a %t.cachedir2/multi-module-c.o
1221
1322 ; This line test MCJIT archive loading
14 ; RUN: %lli_mcjit -extra-archive=%t.cachedir/%p/Inputs/load-object.a %s
23 ; RUN: %lli_mcjit -extra-archive=%t.cachedir3/load-object.a %s
1524
1625 declare i32 @FB()
1726