mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 15:32:52 +01:00
bb2cd15df7
llvm-svn: 17536
17 lines
420 B
LLVM
17 lines
420 B
LLVM
; RUN: llvm-as -f %s -o %t.bc
|
|
; RUN: lli %t.bc > /dev/null
|
|
|
|
; 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 }
|
|
int %main() { ret int 0 }
|
|
uint %test() { ret uint 4 }
|
|
long %test() { ret long 0 }
|
|
ulong %test() { ret ulong 0 }
|
|
float %test() { ret float 1.0 }
|
|
double %test() { ret double 2.0 }
|