While working on the pool allocator, I noticed that basicaa is failing a scary
[oota-llvm.git] / test / ExecutionEngine / test-loadstore.ll
1
2 void %test(sbyte* %P, short* %P, int* %P, long* %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
12         %V = load long* %P
13         store long %V, long* %P
14
15         ret void
16 }
17
18 uint %varalloca(uint %Size) {
19         %X = alloca uint, uint %Size        ;; Variable sized alloca
20         store uint %Size, uint* %X
21         %Y = load uint* %X
22         ret uint %Y
23 }
24
25 int %main() {
26         %A = alloca sbyte
27         %B = alloca short
28         %C = alloca int
29         %D = alloca long
30         call void %test(sbyte* %A, short* %B, int* %C, long* %D)
31         call uint %varalloca(uint 7)
32
33         ret int 0
34 }