3 ; This first line will generate the .o files for the next run line
4 ; RUN: rm -rf %t.cachedir
5 ; RUN: mkdir -p %t.cachedir
6 ; 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
8 ; Collect generated objects.
9 ; RUN: rm -rf %t.cachedir2
10 ; RUN: mkdir -p %t.cachedir2
11 ; RUN: find %t.cachedir -type f -name 'multi-module-?.o' -exec mv -v '{}' %t.cachedir2 ';'
13 ; This line tests MCJIT object loading
14 ; RUN: %lli_mcjit -extra-object=%t.cachedir2/multi-module-b.o -extra-object=%t.cachedir2/multi-module-c.o %s
16 ; RUN: rm -rf %t.cachedir3
17 ; RUN: mkdir -p %t.cachedir3
19 ; These lines put the object files into an archive
20 ; RUN: llvm-ar r %t.cachedir3/load-object.a %t.cachedir2/multi-module-b.o
21 ; RUN: llvm-ar r %t.cachedir3/load-object.a %t.cachedir2/multi-module-c.o
23 ; This line test MCJIT archive loading
24 ; RUN: %lli_mcjit -extra-archive=%t.cachedir3/load-object.a %s
29 %r = call i32 @FB( ) ; <i32> [#uses=1]