blob: e20691277fde7d214a59414d2fa7be8d212c93a5 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
2; RUN: lli %t.bc > /dev/null
3
4; test return instructions
5
6void %test1() { ret void }
7sbyte %test2() { ret sbyte 1 }
8ubyte %test3() { ret ubyte 1 }
9short %test4() { ret short -1 }
10ushort %test5() { ret ushort 65535 }
11int %main() { ret int 0 }
12uint %test6() { ret uint 4 }
13long %test7() { ret long 0 }
14ulong %test8() { ret ulong 0 }
15float %test9() { ret float 1.0 }
16double %test10() { ret double 2.0 }