1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-28 06:22:51 +01:00
llvm-mirror/test/Regression/Jello/test-loadstore.ll
Chris Lattner 8aa1a4c643 Add test for longs
llvm-svn: 5246
2003-01-13 00:57:04 +00:00

35 lines
600 B
LLVM

void %test(sbyte* %P, short* %P, int* %P, long* %P) {
%V = load sbyte* %P
store sbyte %V, sbyte* %P
%V = load short* %P
store short %V, short* %P
%V = load int* %P
store int %V, int* %P
%V = load long* %P
store long %V, long* %P
ret void
}
uint %varalloca(uint %Size) {
%X = alloca uint, uint %Size ;; Variable sized alloca
store uint %Size, uint* %X
%Y = load uint* %X
ret uint %Y
}
int %main() {
%A = alloca sbyte
%B = alloca short
%C = alloca int
%D = alloca long
call void %test(sbyte* %A, short* %B, int* %C, long* %D)
call uint %varalloca(uint 7)
ret int 0
}