summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Mips/frame-address-err.ll
blob: 086f62876a317230bfea5173fe0661b8f34369ab (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: not llc -march=mips < %s 2>&1 | FileCheck %s

declare i8* @llvm.frameaddress(i32) nounwind readnone

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

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