xref: /llvm-project/llvm/test/CodeGen/AMDGPU/comdat.ll (revision e29e30b1397f3e50f3487491f8a77ae08e4e3471)
1; RUN: llc -mtriple amdgcn-amd-amdhsa -filetype=obj <%s \
2; RUN:   | llvm-readobj --symbols - | FileCheck %s
3
4; CHECK: Name: func1
5; CHECK: Section: .text.func1
6
7; CHECK: Name: func2
8; CHECK: Section: .text.func2
9
10$func1 = comdat any
11$func2 = comdat any
12
13define amdgpu_kernel void @func1() local_unnamed_addr comdat {
14  ret void
15}
16
17define amdgpu_kernel void @func2() local_unnamed_addr comdat {
18  ret void
19}
20