diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-14 02:51:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-14 02:51:40 +0000 |
commit | 4a6f9a40b73d8ae0bd392911cd68c4c9689b442a (patch) | |
tree | 33ff41ff0c2c1d618043731a4832cc5d24a57d3c /test | |
parent | cf8990838143fcfa91dd6276af523ac6c23517c2 (diff) | |
download | external_llvm-4a6f9a40b73d8ae0bd392911cd68c4c9689b442a.zip external_llvm-4a6f9a40b73d8ae0bd392911cd68c4c9689b442a.tar.gz external_llvm-4a6f9a40b73d8ae0bd392911cd68c4c9689b442a.tar.bz2 |
Test that the code generator supports these intrinsics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/2004-02-13-FrameReturnAddress.llx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2004-02-13-FrameReturnAddress.llx b/test/CodeGen/X86/2004-02-13-FrameReturnAddress.llx new file mode 100644 index 0000000..dae1ea9 --- /dev/null +++ b/test/CodeGen/X86/2004-02-13-FrameReturnAddress.llx @@ -0,0 +1,14 @@ +; RUN: llvm-as < %s | llc + +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 +} |