[llvm-commits] CVS: llvm/test/Regression/CodeGen/stacksave-restore.ll

Chris Lattner lattner at cs.uiuc.edu
Thu Jan 12 18:25:21 PST 2006



Changes in directory llvm/test/Regression/CodeGen:

stacksave-restore.ll added (r1.1)
---
Log message:

testcase for the llvm.stacksave/llvm.stackrestore intrinsics.


---
Diffs of the changes:  (+12 -0)

 stacksave-restore.ll |   12 ++++++++++++
 1 files changed, 12 insertions(+)


Index: llvm/test/Regression/CodeGen/stacksave-restore.ll
diff -c /dev/null llvm/test/Regression/CodeGen/stacksave-restore.ll:1.1
*** /dev/null	Thu Jan 12 20:25:18 2006
--- llvm/test/Regression/CodeGen/stacksave-restore.ll	Thu Jan 12 20:25:08 2006
***************
*** 0 ****
--- 1,12 ----
+ ; RUN: llvm-as < %s | llc
+ 
+ declare sbyte* %llvm.stacksave()
+ declare void %llvm.stackrestore(sbyte*)
+ 
+ int *%test(uint %N) {
+ 	%tmp = call sbyte* %llvm.stacksave()
+ 	%P = alloca int, uint %N
+ 	call void %llvm.stackrestore(sbyte* %tmp)
+ 	%Q = alloca int, uint %N
+ 	ret int* %P
+ }






More information about the llvm-commits mailing list