Home | History | Annotate | Download | only in AMDGPU
      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
      7 define spir_kernel void @kernel(i32 addrspace(1)* %out) {
      8 entry:
      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
     16 define spir_func void @func(i32 addrspace(1)* %out) {
     17 entry:
     18   store i32 0, i32 addrspace(1)* %out
     19   ret void
     20 }
     21