llvm-for-llvmta/test/CodeGen/Mips/frame-address-err.ll

12 lines
272 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; 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
}