repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
In some rare cases, the register allocator can spill registers but end up not utilizi...
[llvm/msp430.git]
/
test
/
ExecutionEngine
/
test-ret.ll
blob
e684fd5e3aa3b7798d303cb5a24e3cf7c4262dc2
1
; RUN: llvm-as %s -f -o %t.bc
2
; RUN: lli %t.bc > /dev/null
3
4
; test return instructions
5
define void @test1() {
6
ret void
7
}
8
9
define i8 @test2() {
10
ret i8 1
11
}
12
13
define i8 @test3() {
14
ret i8 1
15
}
16
17
define i16 @test4() {
18
ret i16 -1
19
}
20
21
define i16 @test5() {
22
ret i16 -1
23
}
24
25
define i32 @main() {
26
ret i32 0
27
}
28
29
define i32 @test6() {
30
ret i32 4
31
}
32
33
define i64 @test7() {
34
ret i64 0
35
}
36
37
define i64 @test8() {
38
ret i64 0
39
}
40
41
define float @test9() {
42
ret float 1.000000e+00
43
}
44
45
define double @test10() {
46
ret double 2.000000e+00
47
}