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