llvm-project/llvm/test/CodeGen/Mips/frame-address-err.ll
Fangrui Song ae26f50aea [test] Change llc -march=mips* to -mtriple=mips*
Similar to 806761a7629df268c8aed49657aeccffa6bca449
2024-12-10 22:14:06 -08:00

12 lines
274 B
LLVM

; 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
}