summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/global-sections-comdat.ll
blob: a4804a7c5cf134c98536e078ea1b9fc21e0bcc7a (plain)
1
2
3
4
5
6
7
8
; RUN: llc < %s -mtriple=i386-unknown-linux | FileCheck %s -check-prefix=LINUX
; RUN: llc < %s -mtriple=i386-unknown-linux -data-sections | FileCheck %s -check-prefix=LINUX-SECTIONS

$G16 = comdat any
@G16 = unnamed_addr constant i32 42, comdat

; LINUX: .section	.rodata.G16,"aG",@progbits,G16,comdat
; LINUX-SECTIONS: .section	.rodata.G16,"aG",@progbits,G16,comdat
OpenPOWER on IntegriCloud