[llvm-commits] CVS: llvm/test/Regression/CBackend/2004-02-13-FrameReturnAddress.llx
Chris Lattner
lattner at cs.uiuc.edu
Fri Feb 13 20:56:11 PST 2004
Changes in directory llvm/test/Regression/CBackend:
2004-02-13-FrameReturnAddress.llx added (r1.1)
---
Log message:
Add a testcase for the frameaddress and returnaddress intrinsics.
---
Diffs of the changes: (+14 -0)
Index: llvm/test/Regression/CBackend/2004-02-13-FrameReturnAddress.llx
diff -c /dev/null llvm/test/Regression/CBackend/2004-02-13-FrameReturnAddress.llx:1.1
*** /dev/null Fri Feb 13 20:55:57 2004
--- llvm/test/Regression/CBackend/2004-02-13-FrameReturnAddress.llx Fri Feb 13 20:55:47 2004
***************
*** 0 ****
--- 1,14 ----
+ ; RUN: llvm-as < %s | llc -march=c | grep builtin_return_address
+
+ declare sbyte* %llvm.returnaddress(uint)
+ declare sbyte* %llvm.frameaddress(uint)
+
+ sbyte *%test1() {
+ %X = call sbyte* %llvm.returnaddress(uint 0)
+ ret sbyte* %X
+ }
+
+ sbyte *%test2() {
+ %X = call sbyte* %llvm.frameaddress(uint 0)
+ ret sbyte* %X
+ }
More information about the llvm-commits
mailing list