mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +01:00
4572ce85b0
llvm-svn: 33296
17 lines
448 B
LLVM
17 lines
448 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
|
|
; RUN: lli %t.bc > /dev/null
|
|
|
|
; test return instructions
|
|
|
|
void %test1() { ret void }
|
|
sbyte %test2() { ret sbyte 1 }
|
|
ubyte %test3() { ret ubyte 1 }
|
|
short %test4() { ret short -1 }
|
|
ushort %test5() { ret ushort 65535 }
|
|
int %main() { ret int 0 }
|
|
uint %test6() { ret uint 4 }
|
|
long %test7() { ret long 0 }
|
|
ulong %test8() { ret ulong 0 }
|
|
float %test9() { ret float 1.0 }
|
|
double %test10() { ret double 2.0 }
|