2014-01-08 16:31:16 +00:00
|
|
|
; REQUIRES: shell
|
|
|
|
|
|
|
|
; This first line will generate the .o files for the next run line
|
2014-01-09 05:24:05 +00:00
|
|
|
; RUN: mkdir -p %t.cachedir
|
|
|
|
; 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
|
2014-01-08 16:31:16 +00:00
|
|
|
|
|
|
|
; This line tests MCJIT object loading
|
2014-01-09 05:24:05 +00:00
|
|
|
; RUN: %lli_mcjit -extra-object=%t.cachedir/%p/Inputs/multi-module-b.o -extra-object=%t.cachedir/%p/Inputs/multi-module-c.o %s
|
2014-01-08 16:31:16 +00:00
|
|
|
|
|
|
|
; These lines put the object files into an archive
|
2014-01-09 05:24:05 +00:00
|
|
|
; RUN: llvm-ar r %t.cachedir/%p/Inputs/load-object.a %t.cachedir/%p/Inputs/multi-module-b.o
|
|
|
|
; RUN: llvm-ar r %t.cachedir/%p/Inputs/load-object.a %t.cachedir/%p/Inputs/multi-module-c.o
|
2014-01-08 16:31:16 +00:00
|
|
|
|
|
|
|
; This line test MCJIT archive loading
|
2014-01-09 05:24:05 +00:00
|
|
|
; RUN: %lli_mcjit -extra-archive=%t.cachedir/%p/Inputs/load-object.a %s
|
2014-01-08 16:31:16 +00:00
|
|
|
|
|
|
|
declare i32 @FB()
|
|
|
|
|
|
|
|
define i32 @main() {
|
|
|
|
%r = call i32 @FB( ) ; <i32> [#uses=1]
|
|
|
|
ret i32 %r
|
|
|
|
}
|