xref: /llvm-project/llvm/test/CodeGen/RISCV/spir-kernel-cc.ll (revision 654a3a3cbc1c9bbe6d3afff346d3f421a8a23384)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc -mtriple=riscv32 < %s | FileCheck %s -check-prefix=RV32
3; RUN: llc -mtriple=riscv64 < %s | FileCheck %s -check-prefix=RV64
4
5; Check the SPIR_KERNEL call convention works.
6
7define dso_local spir_kernel void @foo() {
8; RV32-LABEL: foo:
9; RV32:       # %bb.0:
10; RV32-NEXT:    ret
11;
12; RV64-LABEL: foo:
13; RV64:       # %bb.0:
14; RV64-NEXT:    ret
15  ret void
16}
17