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