diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-28 20:00:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-28 20:00:33 +0000 |
commit | ce6754766f4ccc869e4c0b70302ab38ac248fba3 (patch) | |
tree | 988ae43b6ca146bf5660fc78a950e04dd1b98a15 | |
parent | 623a2225103680f68e6aeaff6c25674da8357e1f (diff) |
Add a variable sized alloca to test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5158 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/ExecutionEngine/test-loadstore.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ExecutionEngine/test-loadstore.ll b/test/ExecutionEngine/test-loadstore.ll index f301e66be5..1685c78142 100644 --- a/test/ExecutionEngine/test-loadstore.ll +++ b/test/ExecutionEngine/test-loadstore.ll @@ -11,10 +11,19 @@ void %test(sbyte* %P, short* %P, int* %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 call void %test(sbyte* %A, short* %B, int* %C) + call uint %varalloca(uint 7) + ret int 0 } |