diff options
-rw-r--r-- | test/CBackend/2004-02-13-FrameReturnAddress.llx | 14 | ||||
-rw-r--r-- | test/CodeGen/CBackend/2004-02-13-FrameReturnAddress.llx | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/test/CBackend/2004-02-13-FrameReturnAddress.llx b/test/CBackend/2004-02-13-FrameReturnAddress.llx new file mode 100644 index 0000000..613c03e --- /dev/null +++ b/test/CBackend/2004-02-13-FrameReturnAddress.llx @@ -0,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 +} diff --git a/test/CodeGen/CBackend/2004-02-13-FrameReturnAddress.llx b/test/CodeGen/CBackend/2004-02-13-FrameReturnAddress.llx new file mode 100644 index 0000000..613c03e --- /dev/null +++ b/test/CodeGen/CBackend/2004-02-13-FrameReturnAddress.llx @@ -0,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 +} |