; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 ; Check that musttail with sret generates a tail call (not an error). ; RUN: llc -mtriple riscv32-unknown-linux-gnu -o - %s | FileCheck %s ; RUN: llc -mtriple riscv64-unknown-linux-gnu -o - %s | FileCheck %s %struct.A = type { i32 } declare void @callee_musttail(ptr sret(%struct.A) %a) define void @caller_musttail(ptr sret(%struct.A) %a) { ; CHECK-LABEL: caller_musttail: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: tail callee_musttail entry: musttail call void @callee_musttail(ptr sret(%struct.A) %a) ret void }