1 ; RUN: llvm-split -o %t %s -j 4 -mtriple amdgcn-amd-amdhsa
2 ; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 %s
3 ; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 %s
4 ; RUN: llvm-dis -o - %t2 | FileCheck --check-prefix=CHECK2 %s
5 ; RUN: llvm-dis -o - %t3 | FileCheck --check-prefix=CHECK3 %s
7 ; Check that 4 independent kernels get put into 4 different partitions.
10 ; CHECK0: define amdgpu_kernel void @D
14 ; CHECK1: define amdgpu_kernel void @C
18 ; CHECK2: define amdgpu_kernel void @B
22 ; CHECK3: define amdgpu_kernel void @A
25 define amdgpu_kernel void @A() {
29 define amdgpu_kernel void @B() {
33 define amdgpu_kernel void @C() {
37 define amdgpu_kernel void @D() {