[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/stacksave-restore.ll
Chris Lattner
lattner at cs.uiuc.edu
Thu Apr 13 10:18:54 PDT 2006
Changes in directory llvm/test/Regression/CodeGen/Generic:
stacksave-restore.ll added (r1.1)
---
Log message:
Oops, move misplaced test
---
Diffs of the changes: (+12 -0)
stacksave-restore.ll | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/Regression/CodeGen/Generic/stacksave-restore.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Generic/stacksave-restore.ll:1.1
*** /dev/null Thu Apr 13 12:18:52 2006
--- llvm/test/Regression/CodeGen/Generic/stacksave-restore.ll Thu Apr 13 12:18:42 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