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