1685c78142fffce1bbfa790f63cda5c011207a7f
[oota-llvm.git] / test / ExecutionEngine / test-loadstore.ll
1
2 void %test(sbyte* %P, short* %P, int* %P) {
3         %V = load sbyte* %P
4         store sbyte %V, sbyte* %P
5
6         %V = load short* %P
7         store short %V, short* %P
8
9         %V = load int* %P
10         store int %V, int* %P
11         ret void
12 }
13
14 uint %varalloca(uint %Size) {
15         %X = alloca uint, uint %Size        ;; Variable sized alloca
16         store uint %Size, uint* %X
17         %Y = load uint* %X
18         ret uint %Y
19 }
20
21 int %main() {
22         %A = alloca sbyte
23         %B = alloca short
24         %C = alloca int
25         call void %test(sbyte* %A, short* %B, int* %C)
26         call uint %varalloca(uint 7)
27
28         ret int 0
29 }