aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips/frame-address.ll
blob: 92946d9ffd6835248c27730b7157b3f9ccbb3f7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llc -march=mipsel < %s | FileCheck %s

declare i8* @llvm.frameaddress(i32) nounwind readnone

define i8* @f() nounwind {
entry:
  %0 = call i8* @llvm.frameaddress(i32 0)
  ret i8* %0

; CHECK:   move    $fp, $sp
; CHECK:   move    $2, $fp
}