llvm-project/llvm/test/CodeGen/AMDGPU/unsupported-calling-conv-call.ll
Matt Arsenault 4be4b82e74
AMDGPU: Use reportFatalUsageError for unhandled calling conventions (#145261)
Should switch this to DiagnosticInfo and use the default calling
convention, but that would require passing in the context.
2025-06-23 15:30:13 +09:00

8 lines
235 B
LLVM

; RUN: not llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=null %s 2>&1 | FileCheck %s
; CHECK: LLVM ERROR: unsupported calling convention
define void @caller(ptr %func) {
call aarch64_sve_vector_pcs void %func()
ret void
}