source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AMDGPU/calling-conventions.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 514 bytes
Line 
1; RUN: llc < %s -march=amdgcn -mcpu=SI -verify-machineinstrs | FileCheck --check-prefix=SI %s
2
3; Make sure we don't crash or assert on spir_kernel calling convention.
4
5; SI-LABEL: {{^}}kernel:
6; SI: s_endpgm
7define spir_kernel void @kernel(i32 addrspace(1)* %out) {
8entry:
9  store i32 0, i32 addrspace(1)* %out
10  ret void
11}
12
13; FIXME: This is treated like a kernel
14; SI-LABEL: {{^}}func:
15; SI: s_endpgm
16define spir_func void @func(i32 addrspace(1)* %out) {
17entry:
18  store i32 0, i32 addrspace(1)* %out
19  ret void
20}
Note: See TracBrowser for help on using the repository browser.