Mercurial > hg > CbC > CbC_llvm
view test/CodeGen/AMDGPU/calling-conventions.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | |
children | 803732b1fca8 |
line wrap: on
line source
; RUN: llc < %s -march=amdgcn -mcpu=SI -verify-machineinstrs | FileCheck --check-prefix=SI %s ; Make sure we don't crash or assert on spir_kernel calling convention. ; SI-LABEL: {{^}}kernel: ; SI: s_endpgm define spir_kernel void @kernel(i32 addrspace(1)* %out) { entry: store i32 0, i32 addrspace(1)* %out ret void } ; FIXME: This is treated like a kernel ; SI-LABEL: {{^}}func: ; SI: s_endpgm define spir_func void @func(i32 addrspace(1)* %out) { entry: store i32 0, i32 addrspace(1)* %out ret void }