• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Check that we error out if tail is not possible but call is marked as mustail.
2
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
11
12%struct.A = type { i32 }
13
14declare void @callee_musttail(%struct.A* sret %a)
15define void @caller_musttail(%struct.A* sret %a) {
16; CHECK: LLVM ERROR: failed to perform tail call elimination on a call site marked musttail
17entry:
18  musttail call void @callee_musttail(%struct.A* sret %a)
19  ret void
20}
21