xref: /llvm-project/llvm/test/CodeGen/RISCV/ghccc-nest.ll (revision f4f6c63f0df7465b3f4e64e1637405e641f19dc2)
1; RUN: not --crash llc -mtriple=riscv64 -mattr=+f,+d -verify-machineinstrs -filetype=null < %s 2>&1 | FileCheck %s
2; RUN: not --crash llc -mtriple=riscv32 -mattr=+f,+d -verify-machineinstrs -filetype=null < %s 2>&1 | FileCheck %s
3
4define ghccc ptr @nest_receiver(ptr nest %arg) nounwind {
5  ret ptr %arg
6}
7
8define ghccc ptr @nest_caller(ptr %arg) nounwind {
9  %result = call ghccc ptr @nest_receiver(ptr nest %arg)
10  ret ptr %result
11}
12
13; CHECK: LLVM ERROR: Attribute 'nest' is not supported in GHC calling convention
14