Reid Spencer | eacb702 | 2006-12-31 06:02:00 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc |
Tanya Lattner | e9789ef | 2004-11-06 23:32:43 +0000 | [diff] [blame] | 2 | ; RUN: lli %t.bc > /dev/null |
| 3 | |
Chris Lattner | 2b905fd | 2002-11-21 17:18:37 +0000 | [diff] [blame] | 4 | ; test return instructions |
| 5 | |
Reid Spencer | eacb702 | 2006-12-31 06:02:00 +0000 | [diff] [blame] | 6 | void %test1() { ret void } |
| 7 | sbyte %test2() { ret sbyte 1 } |
| 8 | ubyte %test3() { ret ubyte 1 } |
| 9 | short %test4() { ret short -1 } |
| 10 | ushort %test5() { ret ushort 65535 } |
Chris Lattner | 9a32f07 | 2002-12-13 05:42:57 +0000 | [diff] [blame] | 11 | int %main() { ret int 0 } |
Reid Spencer | eacb702 | 2006-12-31 06:02:00 +0000 | [diff] [blame] | 12 | uint %test6() { ret uint 4 } |
| 13 | long %test7() { ret long 0 } |
| 14 | ulong %test8() { ret ulong 0 } |
| 15 | float %test9() { ret float 1.0 } |
| 16 | double %test10() { ret double 2.0 } |