1 ; RUN: llc -mtriple i386-pc-win32 < %s | FileCheck %s
4 @v1 = global i32 0, comdat($f1)
5 define void @f1() comdat($f1) {
9 $f2 = comdat exactmatch
10 @v2 = global i32 0, comdat($f2)
11 define void @f2() comdat($f2) {
16 @v3 = global i32 0, comdat($f3)
17 define void @f3() comdat($f3) {
21 $f4 = comdat nodeduplicate
22 @v4 = global i32 0, comdat($f4)
23 define void @f4() comdat($f4) {
28 @v5 = global i32 0, comdat($f5)
29 define void @f5() comdat($f5) {
34 @v6 = global i32 0, comdat($f6)
35 @f6 = global i32 0, comdat($f6)
37 $"\01@f7@0" = comdat any
38 define x86_fastcallcc void @"\01@v7@0"() comdat($"\01@f7@0") {
41 define x86_fastcallcc void @"\01@f7@0"() comdat($"\01@f7@0") {
46 define x86_fastcallcc void @v8() comdat($f8) {
49 define x86_fastcallcc void @f8() comdat($f8) {
53 $vftable = comdat largest
55 @some_name = private unnamed_addr constant [2 x ptr] zeroinitializer, comdat($vftable)
56 @vftable = alias ptr, getelementptr([2 x ptr], ptr @some_name, i32 0, i32 1)
58 ; CHECK: .section .text,"xr",discard,_f1
60 ; CHECK: .section .text,"xr",same_contents,_f2
62 ; CHECK: .section .text,"xr",largest,_f3
64 ; CHECK: .section .text,"xr",one_only,_f4
66 ; CHECK: .section .text,"xr",same_size,_f5
68 ; CHECK: .section .text,"xr",associative,@f7@0
70 ; CHECK: .section .text,"xr",discard,@f7@0
72 ; CHECK: .section .text,"xr",associative,@f8@0
74 ; CHECK: .section .text,"xr",discard,@f8@0
76 ; CHECK: .section .bss,"bw",associative,_f1
78 ; CHECK: .section .bss,"bw",associative,_f2
80 ; CHECK: .section .bss,"bw",associative,_f3
82 ; CHECK: .section .bss,"bw",associative,_f4
84 ; CHECK: .section .bss,"bw",associative,_f5
86 ; CHECK: .section .bss,"bw",associative,_f6
88 ; CHECK: .section .bss,"bw",same_size,_f6
90 ; CHECK: .section .rdata,"dr",largest,_vftable
91 ; CHECK: .globl _vftable
92 ; CHECK: .set _vftable, L_some_name+4