Changes in directory llvm/test/CodeGen/CBackend:

2007-01-17-StackSaveNRestore.ll added (r1.1)
---
Log message:

For PR1028: http://llvm.org/PR1028 :
Ensure the CBE generates calls to GCC builtins for stack_save and 
stack_restore when it encounters the corresponding intrinsics.

Patch by Gordon Henriksen.


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

 2007-01-17-StackSaveNRestore.ll |   12 ++++++++++++
 1 files changed, 12 insertions(+)


Index: llvm/test/CodeGen/CBackend/2007-01-17-StackSaveNRestore.ll
diff -c /dev/null llvm/test/CodeGen/CBackend/2007-01-17-StackSaveNRestore.ll:1.1
*** /dev/null   Wed Jan 17 17:20:53 2007
--- llvm/test/CodeGen/CBackend/2007-01-17-StackSaveNRestore.ll  Wed Jan 17 
17:20:43 2007
***************
*** 0 ****
--- 1,12 ----
+ ; RUN: llvm-as < %s | llc -march=c | grep __builtin_stack_save
+ ; RUN: llvm-as < %s | llc -march=c | grep __builtin_stack_restore
+ ; PR1028
+ 
+ declare i8* %llvm.stacksave()
+ declare void %llvm.stackrestore(i8*)
+ 
+ define i8* %test() {
+     %s = call i8* %llvm.stacksave()
+     call void %llvm.stackrestore(i8* %s)
+     ret i8* %s
+ }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to