llvm.org GIT mirror llvm / 61e22ea
Renaming MCJIT .ir files to .ll and moving them to Inputs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193562 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Kaylor 6 years ago
23 changed file(s) with 75 addition(s) and 75 deletion(s). Raw diff Collapse all Expand all
0 declare i32 @FA()
1
2 define i32 @FB() {
3 %r = call i32 @FA( ) ; [#uses=1]
4 ret i32 %r
5 }
6
0 declare i32 @FC()
1
2 define i32 @FB() {
3 %r = call i32 @FC( ) ; [#uses=1]
4 ret i32 %r
5 }
6
0 declare i8* @__cxa_allocate_exception(i64)
1 declare void @__cxa_throw(i8*, i8*, i8*)
2 declare i32 @__gxx_personality_v0(...)
3 declare void @__cxa_end_catch()
4 declare i8* @__cxa_begin_catch(i8*)
5
6 @_ZTIi = external constant i8*
7
8 define void @throwException_B() {
9 %exception = tail call i8* @__cxa_allocate_exception(i64 4)
10 call void @__cxa_throw(i8* %exception, i8* bitcast (i8** @_ZTIi to i8*), i8* null)
11 unreachable
12 }
13
14 define i32 @FB() {
15 entry:
16 invoke void @throwException_B()
17 to label %try.cont unwind label %lpad
18
19 lpad:
20 %p = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
21 catch i8* bitcast (i8** @_ZTIi to i8*)
22 %e = extractvalue { i8*, i32 } %p, 0
23 call i8* @__cxa_begin_catch(i8* %e)
24 call void @__cxa_end_catch()
25 br label %try.cont
26
27 try.cont:
28 ret i32 0
29 }
None ; RUN: %lli_mcjit -extra-module=%p/cross-module-b.ir %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/Inputs/cross-module-b.ll %s > /dev/null
11
22 declare i32 @FB()
33
+0
-7
test/ExecutionEngine/MCJIT/cross-module-b.ir less more
None declare i32 @FA()
1
2 define i32 @FB() {
3 %r = call i32 @FA( ) ; [#uses=1]
4 ret i32 %r
5 }
6
None ; RUN: %lli_mcjit -extra-module=%p/cross-module-b.ir -relocation-model=pic -code-model=small %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/Inputs/cross-module-b.ll -relocation-model=pic -code-model=small %s > /dev/null
11 ; XFAIL: mips, i686, i386, aarch64, arm
22
33 declare i32 @FB()
None ; RUN: %lli_mcjit -extra-module=%p/multi-module-b.ir -extra-module=%p/multi-module-c.ir %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll %s > /dev/null
11
22 declare i32 @FB()
33
+0
-7
test/ExecutionEngine/MCJIT/multi-module-b.ir less more
None declare i32 @FC()
1
2 define i32 @FB() {
3 %r = call i32 @FC( ) ; [#uses=1]
4 ret i32 %r
5 }
6
+0
-4
test/ExecutionEngine/MCJIT/multi-module-c.ir less more
None define i32 @FC() {
1 ret i32 0
2 }
3
None ; RUN: %lli_mcjit -extra-module=%p/multi-module-eh-b.ir %s
0 ; RUN: %lli_mcjit -extra-module=%p/Inputs/multi-module-eh-b.ll %s
11 ; XFAIL: arm, cygwin, win32, mingw
22 declare i8* @__cxa_allocate_exception(i64)
33 declare void @__cxa_throw(i8*, i8*, i8*)
+0
-30
test/ExecutionEngine/MCJIT/multi-module-eh-b.ir less more
None declare i8* @__cxa_allocate_exception(i64)
1 declare void @__cxa_throw(i8*, i8*, i8*)
2 declare i32 @__gxx_personality_v0(...)
3 declare void @__cxa_end_catch()
4 declare i8* @__cxa_begin_catch(i8*)
5
6 @_ZTIi = external constant i8*
7
8 define void @throwException_B() {
9 %exception = tail call i8* @__cxa_allocate_exception(i64 4)
10 call void @__cxa_throw(i8* %exception, i8* bitcast (i8** @_ZTIi to i8*), i8* null)
11 unreachable
12 }
13
14 define i32 @FB() {
15 entry:
16 invoke void @throwException_B()
17 to label %try.cont unwind label %lpad
18
19 lpad:
20 %p = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
21 catch i8* bitcast (i8** @_ZTIi to i8*)
22 %e = extractvalue { i8*, i32 } %p, 0
23 call i8* @__cxa_begin_catch(i8* %e)
24 call void @__cxa_end_catch()
25 br label %try.cont
26
27 try.cont:
28 ret i32 0
29 }
None ; RUN: %lli_mcjit -extra-module=%p/multi-module-b.ir -extra-module=%p/multi-module-c.ir -relocation-model=pic -code-model=small %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -relocation-model=pic -code-model=small %s > /dev/null
11 ; XFAIL: mips, i686, i386, aarch64, arm
22
33 declare i32 @FB()
0 declare i32 @FA()
1
2 define i32 @FB() {
3 %r = call i32 @FA( ) ; [#uses=1]
4 ret i32 %r
5 }
6
0 declare i32 @FC()
1
2 define i32 @FB() {
3 %r = call i32 @FC( ) ; [#uses=1]
4 ret i32 %r
5 }
6
None ; RUN: %lli_mcjit -extra-module=%p/cross-module-b.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/Inputs/cross-module-b.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target %s > /dev/null
11
22 ; This fails because __main is not resolved in remote mcjit.
33 ; XFAIL: cygwin,mingw32
+0
-7
test/ExecutionEngine/MCJIT/remote/cross-module-b.ir less more
None declare i32 @FA()
1
2 define i32 @FB() {
3 %r = call i32 @FA( ) ; [#uses=1]
4 ret i32 %r
5 }
6
None ; RUN: %lli_mcjit -extra-module=%p/cross-module-b.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target -relocation-model=pic -code-model=small %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/Inputs/cross-module-b.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target -relocation-model=pic -code-model=small %s > /dev/null
11 ; XFAIL: mips, i686, i386, aarch64, arm
22
33 declare i32 @FB()
None ; RUN: %lli_mcjit -extra-module=%p/multi-module-b.ir -extra-module=%p/multi-module-c.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target %s > /dev/null
11
22 ; This fails because __main is not resolved in remote mcjit.
33 ; XFAIL: cygwin,mingw32
+0
-7
test/ExecutionEngine/MCJIT/remote/multi-module-b.ir less more
None declare i32 @FC()
1
2 define i32 @FB() {
3 %r = call i32 @FC( ) ; [#uses=1]
4 ret i32 %r
5 }
6
+0
-4
test/ExecutionEngine/MCJIT/remote/multi-module-c.ir less more
None define i32 @FC() {
1 ret i32 0
2 }
3
None ; RUN: %lli_mcjit -extra-module=%p/multi-module-b.ir -extra-module=%p/multi-module-c.ir -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target -relocation-model=pic -code-model=small %s > /dev/null
0 ; RUN: %lli_mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -disable-lazy-compilation=true -remote-mcjit -mcjit-remote-process=lli-child-target -relocation-model=pic -code-model=small %s > /dev/null
11 ; XFAIL: mips, i686, i386, aarch64, arm
22
33 declare i32 @FB()