diff options
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/comdat.ll')
-rw-r--r-- | llvm/test/CodeGen/AMDGPU/comdat.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/comdat.ll b/llvm/test/CodeGen/AMDGPU/comdat.ll new file mode 100644 index 00000000000..59331596715 --- /dev/null +++ b/llvm/test/CodeGen/AMDGPU/comdat.ll @@ -0,0 +1,19 @@ +; RUN: llc -mtriple amdgcn-amd-amdhsa -filetype=obj <%s \ +; RUN: | llvm-readobj -symbols - | FileCheck %s + +; CHECK: Name: func1 +; CHECK: Section: .text.func1 + +; CHECK: Name: func2 +; CHECK: Section: .text.func2 + +$func1 = comdat any +$func2 = comdat any + +define amdgpu_kernel void @func1() local_unnamed_addr comdat { + ret void +} + +define amdgpu_kernel void @func2() local_unnamed_addr comdat { + ret void +} |