projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
623a222
)
Add a variable sized alloca to test
author
Chris Lattner
<sabre@nondot.org>
Sat, 28 Dec 2002 20:00:33 +0000
(20:00 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 28 Dec 2002 20:00:33 +0000
(20:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5158
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/ExecutionEngine/test-loadstore.ll
patch
|
blob
|
history
diff --git
a/test/ExecutionEngine/test-loadstore.ll
b/test/ExecutionEngine/test-loadstore.ll
index f301e66be5aff1c82b5c983af809889e23025d8c..1685c78142fffce1bbfa790f63cda5c011207a7f 100644
(file)
--- 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
}