aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/elf-comdat.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/elf-comdat.ll')
-rw-r--r--test/CodeGen/X86/elf-comdat.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/elf-comdat.ll b/test/CodeGen/X86/elf-comdat.ll
new file mode 100644
index 0000000..c7e6df7
--- /dev/null
+++ b/test/CodeGen/X86/elf-comdat.ll
@@ -0,0 +1,11 @@
+; RUN: llc -mtriple x86_64-pc-linux-gnu < %s | FileCheck %s
+
+$f = comdat any
+@v = global i32 0, comdat $f
+define void @f() comdat $f {
+ ret void
+}
+; CHECK: .section .text.f,"axG",@progbits,f,comdat
+; CHECK: .globl f
+; CHECK: .section .bss.v,"aGw",@nobits,f,comdat
+; CHECK: .globl v