1 ; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck %s 2 ; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck %s 3 ; RUN: llc -march=r600 -mcpu=redwood -verify-machineinstrs < %s | FileCheck %s 4 5 ; CHECK-NOT: {{^}}func: 6 define internal fastcc i32 @func(i32 %a) { 7 entry: 8 %tmp0 = add i32 %a, 1 9 ret i32 %tmp0 10 } 11 12 ; CHECK: {{^}}kernel: 13 define void @kernel(i32 addrspace(1)* %out) { 14 entry: 15 %tmp0 = call i32 @func(i32 1) 16 store i32 %tmp0, i32 addrspace(1)* %out 17 ret void 18 } 19 20 ; CHECK: {{^}}kernel2: 21 define void @kernel2(i32 addrspace(1)* %out) { 22 entry: 23 call void @kernel(i32 addrspace(1)* %out) 24 ret void 25 } 26