diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-17 07:59:14 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-17 07:59:14 +0000 |
| commit | 83b3d8267225d585678d5d3af9bba5735f4b415d (patch) | |
| tree | 9d6c2ad7bfd568186e83a39e6f03e1c0bf415715 /llvm/test/ExecutionEngine/test-loadstore.ll | |
| parent | 100602d7561ca5e245db6194bddae86357d203d4 (diff) | |
| download | bcm5719-llvm-83b3d8267225d585678d5d3af9bba5735f4b415d.tar.gz bcm5719-llvm-83b3d8267225d585678d5d3af9bba5735f4b415d.zip | |
Regression is gone, don't try to find it on clean target.
llvm-svn: 33296
Diffstat (limited to 'llvm/test/ExecutionEngine/test-loadstore.ll')
| -rw-r--r-- | llvm/test/ExecutionEngine/test-loadstore.ll | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/test-loadstore.ll b/llvm/test/ExecutionEngine/test-loadstore.ll new file mode 100644 index 00000000000..8a4b7933d18 --- /dev/null +++ b/llvm/test/ExecutionEngine/test-loadstore.ll @@ -0,0 +1,37 @@ +; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc +; RUN: lli %t.bc > /dev/null + + +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 +} |

