1 ; RUN: llvm-split -o %t %s -j 2 -mtriple amdgcn-amd-amdhsa -amdgpu-module-splitting-no-externalize-address-taken
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
5 ; CHECK0: define internal void @HelperB
6 ; CHECK0: define amdgpu_kernel void @B
8 ; CHECK1: define internal void @HelperA()
9 ; CHECK1: define amdgpu_kernel void @A()
11 @addrthief = global [2 x ptr] [ptr @HelperA, ptr @HelperB]
13 define internal void @HelperA() {
17 define internal void @HelperB() {
21 define amdgpu_kernel void @A() {
22 call void asm sideeffect "v_mov_b32 v0, 7", "~{v0}"()
27 define amdgpu_kernel void @B(ptr %out) {