2011-09-09 20:45:50 +00:00
|
|
|
; RUN: llc -march=mipsel < %s | FileCheck %s
|
2011-06-02 00:25:53 +00:00
|
|
|
|
|
|
|
declare i8* @llvm.frameaddress(i32) nounwind readnone
|
|
|
|
|
2013-05-16 14:51:26 +00:00
|
|
|
define i8* @f() nounwind uwtable {
|
2011-06-02 00:25:53 +00:00
|
|
|
entry:
|
|
|
|
%0 = call i8* @llvm.frameaddress(i32 0)
|
|
|
|
ret i8* %0
|
|
|
|
|
2013-05-16 14:51:26 +00:00
|
|
|
; CHECK: .cfi_startproc
|
|
|
|
; CHECK: .cfi_def_cfa_offset 8
|
|
|
|
; CHECK: .cfi_offset 30, -4
|
2013-02-05 08:32:10 +00:00
|
|
|
; CHECK: move $fp, $sp
|
2013-05-16 14:51:26 +00:00
|
|
|
; CHECK: .cfi_def_cfa_register 30
|
2013-03-04 22:25:01 +00:00
|
|
|
; CHECK: move $2, $fp
|
2013-05-16 14:51:26 +00:00
|
|
|
; CHECK: .cfi_endproc
|
2011-06-02 00:25:53 +00:00
|
|
|
}
|