2004-11-06 23:32:43 +00:00
|
|
|
; RUN: llvm-as -f %s -o %t.bc
|
|
|
|
; RUN: lli %t.bc > /dev/null
|
|
|
|
|
2002-11-21 17:18:37 +00:00
|
|
|
; test return instructions
|
|
|
|
|
|
|
|
void %test() { ret void }
|
|
|
|
sbyte %test() { ret sbyte 1 }
|
|
|
|
ubyte %test() { ret ubyte 1 }
|
|
|
|
short %test() { ret short -1 }
|
|
|
|
ushort %test() { ret ushort 65535 }
|
2002-12-13 05:42:57 +00:00
|
|
|
int %main() { ret int 0 }
|
2002-11-21 17:18:37 +00:00
|
|
|
uint %test() { ret uint 4 }
|
2003-01-13 00:57:19 +00:00
|
|
|
long %test() { ret long 0 }
|
|
|
|
ulong %test() { ret ulong 0 }
|
|
|
|
float %test() { ret float 1.0 }
|
|
|
|
double %test() { ret double 2.0 }
|