llvm/test/CodeGen/Mips/frame-address.ll
Akira Hatanaka 8ddf6531b8 Drop support for Mips1 and Mips2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139405 91177308-0d34-0410-b5e6-96231b3b80d8
2011-09-09 20:45:50 +00:00

13 lines
262 B
LLVM

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