aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/Mips/frame-address-err.ll
blob: 9b75d3c66e27e45d768d7ef72a5e1fdc7ba6b01a (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.frameaddress(i32) nounwind readnone

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

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