source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AMDGPU/inline-calls.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: 651 bytes
Line 
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:
6define internal fastcc i32 @func(i32 %a) {
7entry:
8  %tmp0 = add i32 %a, 1
9  ret i32 %tmp0
10}
11
12; CHECK: {{^}}kernel:
13define void @kernel(i32 addrspace(1)* %out) {
14entry:
15  %tmp0 = call i32 @func(i32 1)
16  store i32 %tmp0, i32 addrspace(1)* %out
17  ret void
18}
19
20; CHECK: {{^}}kernel2:
21define void @kernel2(i32 addrspace(1)* %out) {
22entry:
23  call void @kernel(i32 addrspace(1)* %out)
24  ret void
25}
Note: See TracBrowser for help on using the repository browser.