1 ; RUN: not llc --mtriple=loongarch64 -mattr=+d < %s 2>&1 | FileCheck %s
3 declare ptr @llvm.returnaddress(i32 immarg)
5 define ptr @non_zero_returnaddress() nounwind {
6 ; CHECK: return address can only be determined for the current frame
7 %1 = call ptr @llvm.returnaddress(i32 1)