blob: 0fe77ed802b7ab0c90c2dd114ffed65e404353ac [file] [edit]
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; RUN: llc -mtriple=loongarch32 %s -o - | FileCheck %s --check-prefix=LA32
; RUN: llc -mtriple=loongarch64 %s -o - | FileCheck %s --check-prefix=LA64
%struct.A = type { i32 }
declare void @callee_musttail(ptr sret(%struct.A) %a)
define void @caller_musttail(ptr sret(%struct.A) %a) {
; LA32-LABEL: caller_musttail:
; LA32: # %bb.0: # %entry
; LA32-NEXT: b callee_musttail
;
; LA64-LABEL: caller_musttail:
; LA64: # %bb.0: # %entry
; LA64-NEXT: pcaddu18i $t8, %call36(callee_musttail)
; LA64-NEXT: jr $t8
entry:
musttail call void @callee_musttail(ptr sret(%struct.A) %a)
ret void
}