llvm-project/llvm/test/CodeGen/Mips/frame-address.ll

13 lines
253 B
LLVM
Raw Normal View History

; 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: or $2, $fp, $zero
}