blob: 6fbaf717d75d7ccf3dded98eda981b32a62b1fe0 [file] [log] [blame]
Tanya Lattnere9789ef2004-11-06 23:32:43 +00001; RUN: llvm-as -f %s -o %t.bc
2; RUN: lli %t.bc > /dev/null
3
Chris Lattner2b905fd2002-11-21 17:18:37 +00004; test return instructions
5
6void %test() { ret void }
7sbyte %test() { ret sbyte 1 }
8ubyte %test() { ret ubyte 1 }
9short %test() { ret short -1 }
10ushort %test() { ret ushort 65535 }
Chris Lattner9a32f072002-12-13 05:42:57 +000011int %main() { ret int 0 }
Chris Lattner2b905fd2002-11-21 17:18:37 +000012uint %test() { ret uint 4 }
Chris Lattner2ecd4952003-01-13 00:57:19 +000013long %test() { ret long 0 }
14ulong %test() { ret ulong 0 }
15float %test() { ret float 1.0 }
16double %test() { ret double 2.0 }