blob: e20691277fde7d214a59414d2fa7be8d212c93a5 [file] [log] [blame]
Reid Spencereacb7022006-12-31 06:02:00 +00001; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
Tanya Lattnere9789ef2004-11-06 23:32:43 +00002; RUN: lli %t.bc > /dev/null
3
Chris Lattner2b905fd2002-11-21 17:18:37 +00004; test return instructions
5
Reid Spencereacb7022006-12-31 06:02:00 +00006void %test1() { ret void }
7sbyte %test2() { ret sbyte 1 }
8ubyte %test3() { ret ubyte 1 }
9short %test4() { ret short -1 }
10ushort %test5() { ret ushort 65535 }
Chris Lattner9a32f072002-12-13 05:42:57 +000011int %main() { ret int 0 }
Reid Spencereacb7022006-12-31 06:02:00 +000012uint %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 }