reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
; RUN: llc -march=mipsel -verify-machineinstrs < %s | FileCheck %s

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

; CHECK:    move  $2, $ra
}

define i8* @f2() nounwind {
entry:
  call void @g()
  %0 = call i8* @llvm.returnaddress(i32 0)
  ret i8* %0

; CHECK:    move  $[[R0:[0-9]+]], $ra
; CHECK:    jal
; CHECK:    move  $2, $[[R0]]
}

declare i8* @llvm.returnaddress(i32) nounwind readnone
declare void @g()