blob: 65b4ff5733f434f017be53c75a325c1d19a1fde3 [file] [log] [blame]
; RUN: llc -march=mipsel -verify-machineinstrs < %s | FileCheck %s
define ptr @f1() nounwind {
entry:
%0 = call ptr @llvm.returnaddress(i32 0)
ret ptr %0
; CHECK: move $2, $ra
}
define ptr @f2() nounwind {
entry:
call void @g()
%0 = call ptr @llvm.returnaddress(i32 0)
ret ptr %0
; CHECK: move $[[R0:[0-9]+]], $ra
; CHECK: jal
; CHECK: move $2, $[[R0]]
}
declare ptr @llvm.returnaddress(i32) nounwind readnone
declare void @g()