summaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/Mips/return_address_err.ll
blob: 9a8fe1d0545f54b30ddcbdbdf68064f69b257d06 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: not llc -mtriple=mips < %s 2>&1 | FileCheck %s

declare ptr @llvm.returnaddress(i32) nounwind readnone

define ptr @f() nounwind {
entry:
  %0 = call ptr @llvm.returnaddress(i32 1)
  ret ptr %0

; CHECK: error: return address can be determined only for current frame
}