Tanya Lattner | e9789ef | 2004-11-06 23:32:43 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as -f %s -o %t.bc |
| 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 | |
| 6 | void %test() { ret void } |
| 7 | sbyte %test() { ret sbyte 1 } |
| 8 | ubyte %test() { ret ubyte 1 } |
| 9 | short %test() { ret short -1 } |
| 10 | ushort %test() { ret ushort 65535 } |
Chris Lattner | 9a32f07 | 2002-12-13 05:42:57 +0000 | [diff] [blame] | 11 | int %main() { ret int 0 } |
Chris Lattner | 2b905fd | 2002-11-21 17:18:37 +0000 | [diff] [blame] | 12 | uint %test() { ret uint 4 } |
Chris Lattner | 2ecd495 | 2003-01-13 00:57:19 +0000 | [diff] [blame] | 13 | long %test() { ret long 0 } |
| 14 | ulong %test() { ret ulong 0 } |
| 15 | float %test() { ret float 1.0 } |
| 16 | double %test() { ret double 2.0 } |