aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/RISCV/ghccc-nest.ll
blob: c8ed3895a0a576ea81c2b335e6ed0db717bf171e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: not --crash llc -mtriple=riscv64 -mattr=+f,+d -verify-machineinstrs -filetype=null < %s 2>&1 | FileCheck %s
; RUN: not --crash llc -mtriple=riscv32 -mattr=+f,+d -verify-machineinstrs -filetype=null < %s 2>&1 | FileCheck %s

define ghccc ptr @nest_receiver(ptr nest %arg) nounwind {
  ret ptr %arg
}

define ghccc ptr @nest_caller(ptr %arg) nounwind {
  %result = call ghccc ptr @nest_receiver(ptr nest %arg)
  ret ptr %result
}

; CHECK: LLVM ERROR: Attribute 'nest' is not supported in GHC calling convention