1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/CodeGen/Mips/frame-address.ll
Rafael Espindola 16c10c628f Add more addFrameMove test coverage.
llvm-svn: 182011
2013-05-16 14:51:26 +00:00

18 lines
395 B
LLVM

; RUN: llc -march=mipsel < %s | FileCheck %s
declare i8* @llvm.frameaddress(i32) nounwind readnone
define i8* @f() nounwind uwtable {
entry:
%0 = call i8* @llvm.frameaddress(i32 0)
ret i8* %0
; CHECK: .cfi_startproc
; CHECK: .cfi_def_cfa_offset 8
; CHECK: .cfi_offset 30, -4
; CHECK: move $fp, $sp
; CHECK: .cfi_def_cfa_register 30
; CHECK: move $2, $fp
; CHECK: .cfi_endproc
}