diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-05-22 01:47:14 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-05-22 01:47:14 +0000 |
commit | 168ced94d84929f7cdb5d61c67ed79e7275f0ec6 (patch) | |
tree | a9b6a2f1562ee40a1a93d1ab2e9646610f8f1c3d /llvm/test/CodeGen/ARM/arm-frameaddr.ll | |
parent | bd9485db634dd2341f6e766e99bff758793d0d42 (diff) | |
download | bcm5719-llvm-168ced94d84929f7cdb5d61c67ed79e7275f0ec6.tar.gz bcm5719-llvm-168ced94d84929f7cdb5d61c67ed79e7275f0ec6.zip |
Implement @llvm.returnaddress. rdar://8015977.
llvm-svn: 104421
Diffstat (limited to 'llvm/test/CodeGen/ARM/arm-frameaddr.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/arm-frameaddr.ll | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/ARM/arm-frameaddr.ll b/llvm/test/CodeGen/ARM/arm-frameaddr.ll index 273986034c9..1c7ac25e073 100644 --- a/llvm/test/CodeGen/ARM/arm-frameaddr.ll +++ b/llvm/test/CodeGen/ARM/arm-frameaddr.ll @@ -1,10 +1,15 @@ -; RUN: llc < %s -mtriple=arm-apple-darwin | grep mov | grep r7 -; RUN: llc < %s -mtriple=arm-linux-gnueabi | grep mov | grep r11 +; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=DARWIN +; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=LINUX ; PR4344 ; PR4416 define arm_aapcscc i8* @t() nounwind { entry: +; DARWIN: t: +; DARWIN: mov r0, r7 + +; LINUX: t: +; LINUX: mov r0, r11 %0 = call i8* @llvm.frameaddress(i32 0) ret i8* %0 } |