xref: /llvm-project/llvm/test/tools/llvm-split/AMDGPU/indirect-call-inline-asm-debug.ll (revision d656b2063262d59c3565e63095104c01d1f6a5a3)
1; REQUIRES: asserts
2
3; RUN: llvm-split -o %t %s -j 2 -mtriple amdgcn-amd-amdhsa -amdgpu-module-splitting-no-externalize-address-taken -debug-only=amdgpu-split-module 2>&1 | FileCheck %s
4
5; CHECK:      [!] callgraph is incomplete for ptr @A  - analyzing function
6; CHECK-NEXT:     found inline assembly
7; CHECK-NOT:      indirect call found
8
9@addrthief = global [2 x ptr] [ptr @HelperA, ptr @HelperB]
10
11define internal void @HelperA() {
12  ret void
13}
14
15define internal void @HelperB() {
16  ret void
17}
18
19define amdgpu_kernel void @A() {
20  call void asm sideeffect "v_mov_b32 v0, 7", "~{v0}"()
21  call void @HelperA()
22  ret void
23}
24
25define amdgpu_kernel void @B(ptr %out) {
26  call void @HelperB()
27  ret void
28}
29