~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/CodeGen/ARM/arm-frameaddr.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s -mtriple=arm-apple-darwin  | FileCheck %s -check-prefix=DARWIN
 
2
; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=LINUX
 
3
; PR4344
 
4
; PR4416
 
5
 
 
6
define i8* @t() nounwind {
 
7
entry:
 
8
; DARWIN: t:
 
9
; DARWIN: mov r0, r7
 
10
 
 
11
; LINUX: t:
 
12
; LINUX: mov r0, r11
 
13
        %0 = call i8* @llvm.frameaddress(i32 0)
 
14
        ret i8* %0
 
15
}
 
16
 
 
17
declare i8* @llvm.frameaddress(i32) nounwind readnone