Lang Hames | 7b6f99f | 2014-01-08 16:31:16 +0000 | [diff] [blame^] | 1 | ; REQUIRES: shell |
| 2 | |
| 3 | ; This first line will generate the .o files for the next run line |
| 4 | ; RUN: %lli_mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -enable-cache-manager %s |
| 5 | |
| 6 | ; This line tests MCJIT object loading |
| 7 | ; RUN: %lli_mcjit -extra-object=%p/Inputs/multi-module-b.o -extra-object=%p/Inputs/multi-module-c.o %s |
| 8 | |
| 9 | ; These lines put the object files into an archive |
| 10 | ; RUN: llvm-ar r %p/Inputs/load-object.a %p/Inputs/multi-module-b.o |
| 11 | ; RUN: llvm-ar r %p/Inputs/load-object.a %p/Inputs/multi-module-c.o |
| 12 | |
| 13 | ; This line test MCJIT archive loading |
| 14 | ; RUN: %lli_mcjit -extra-archive=%p/Inputs/load-object.a %s |
| 15 | |
| 16 | ; These lines clean up our temporary files |
| 17 | ; RUN: rm -f %p/Inputs/load-object-a.o |
| 18 | ; RUN: rm -f %p/Inputs/multi-module-b.o |
| 19 | ; RUN: rm -f %p/Inputs/multi-module-c.o |
| 20 | ; RUN: rm -f %p/Inputs/load-object.a |
| 21 | |
| 22 | declare i32 @FB() |
| 23 | |
| 24 | define i32 @main() { |
| 25 | %r = call i32 @FB( ) ; <i32> [#uses=1] |
| 26 | ret i32 %r |
| 27 | } |