llvm.org GIT mirror llvm / 166effd
Oops, move misplaced test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27659 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
2 changed file(s) with 12 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc
1
2 declare sbyte* %llvm.stacksave()
3 declare void %llvm.stackrestore(sbyte*)
4
5 int *%test(uint %N) {
6 %tmp = call sbyte* %llvm.stacksave()
7 %P = alloca int, uint %N
8 call void %llvm.stackrestore(sbyte* %tmp)
9 %Q = alloca int, uint %N
10 ret int* %P
11 }
+0
-12
test/CodeGen/stacksave-restore.ll less more
None ; RUN: llvm-as < %s | llc
1
2 declare sbyte* %llvm.stacksave()
3 declare void %llvm.stackrestore(sbyte*)
4
5 int *%test(uint %N) {
6 %tmp = call sbyte* %llvm.stacksave()
7 %P = alloca int, uint %N
8 call void %llvm.stackrestore(sbyte* %tmp)
9 %Q = alloca int, uint %N
10 ret int* %P
11 }