xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/elf-comdat.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple x86_64-pc-linux-gnu < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker$f = comdat any
4*9880d681SAndroid Build Coastguard Worker@v = global i32 0, comdat($f)
5*9880d681SAndroid Build Coastguard Workerdefine void @f() comdat($f) {
6*9880d681SAndroid Build Coastguard Worker  ret void
7*9880d681SAndroid Build Coastguard Worker}
8*9880d681SAndroid Build Coastguard Worker; CHECK: .section        .text.f,"axG",@progbits,f,comdat
9*9880d681SAndroid Build Coastguard Worker; CHECK: .globl  f
10*9880d681SAndroid Build Coastguard Worker; CHECK: .section        .bss.v,"aGw",@nobits,f,comdat
11*9880d681SAndroid Build Coastguard Worker; CHECK: .globl  v
12