1 ; Check that we error out if tail is not possible but call is marked as mustail.
3 ; RUN: not llc -mtriple riscv32-unknown-linux-gnu -o - %s \
4 ; RUN: 2>&1 | FileCheck %s
5 ; RUN: not llc -mtriple riscv32-unknown-elf -o - %s \
6 ; RUN: 2>&1 | FileCheck %s
7 ; RUN: not llc -mtriple riscv64-unknown-linux-gnu -o - %s \
8 ; RUN: 2>&1 | FileCheck %s
9 ; RUN: not llc -mtriple riscv64-unknown-elf -o - %s \
10 ; RUN: 2>&1 | FileCheck %s
12 %struct.A = type { i32 }
14 declare void @callee_musttail(%struct.A* sret %a)
15 define void @caller_musttail(%struct.A* sret %a) {
16 ; CHECK: LLVM ERROR: failed to perform tail call elimination on a call site marked musttail
18 musttail call void @callee_musttail(%struct.A* sret %a)