new testcase
[oota-llvm.git] / test / CodeGen / stacksave-restore.ll
1 ; RUN: llvm-as < %s | llc
2
3 declare sbyte* %llvm.stacksave()
4 declare void %llvm.stackrestore(sbyte*)
5
6 int *%test(uint %N) {
7         %tmp = call sbyte* %llvm.stacksave()
8         %P = alloca int, uint %N
9         call void %llvm.stackrestore(sbyte* %tmp)
10         %Q = alloca int, uint %N
11         ret int* %P
12 }