1 ; RUN: llvm-split -o %t %s -j 3 -mtriple amdgcn-amd-amdhsa
2 ; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 --implicit-check-not=define %s
3 ; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 --implicit-check-not=define %s
4 ; RUN: llvm-dis -o - %t2 | FileCheck --check-prefix=CHECK2 --implicit-check-not=define %s
6 ; CHECK0: define amdgpu_kernel void @D
8 ; CHECK1: define amdgpu_kernel void @C
10 ; CHECK2: define void @ExternalHelper
11 ; CHECK2: define amdgpu_kernel void @A
12 ; CHECK2: define amdgpu_kernel void @B
14 define void @ExternalHelper() {
18 define amdgpu_kernel void @A() {
19 call void @ExternalHelper()
23 define amdgpu_kernel void @B() {
24 call void @ExternalHelper()
28 define amdgpu_kernel void @C() {
32 define amdgpu_kernel void @D() {