Add more addFrameMove test coverage.

llvm-svn: 182011
This commit is contained in:
Rafael Espindola 2013-05-16 14:51:26 +00:00
parent 12d09f3a3d
commit 1f2584025d
1 changed files with 6 additions and 1 deletions

View File

@ -2,11 +2,16 @@
declare i8* @llvm.frameaddress(i32) nounwind readnone declare i8* @llvm.frameaddress(i32) nounwind readnone
define i8* @f() nounwind { define i8* @f() nounwind uwtable {
entry: entry:
%0 = call i8* @llvm.frameaddress(i32 0) %0 = call i8* @llvm.frameaddress(i32 0)
ret i8* %0 ret i8* %0
; CHECK: .cfi_startproc
; CHECK: .cfi_def_cfa_offset 8
; CHECK: .cfi_offset 30, -4
; CHECK: move $fp, $sp ; CHECK: move $fp, $sp
; CHECK: .cfi_def_cfa_register 30
; CHECK: move $2, $fp ; CHECK: move $2, $fp
; CHECK: .cfi_endproc
} }