]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/LTO/Resolution/X86/Inputs/comdat.ll
Vendor import of llvm trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / test / LTO / Resolution / X86 / Inputs / comdat.ll
1 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
2 target triple = "x86_64-unknown-linux-gnu"
3
4 $c2 = comdat any
5 $c1 = comdat any
6
7 ; This is only present in this file. The linker will keep $c1 from the first
8 ; file and this will be undefined.
9 @will_be_undefined = global i32 1, comdat($c1)
10
11 @v1 = weak_odr global i32 41, comdat($c2)
12 define weak_odr protected i32 @f1(i8* %this) comdat($c2) {
13 bb20:
14   store i8* %this, i8** null
15   br label %bb21
16 bb21:
17   ret i32 41
18 }
19
20 @r21 = global i32* @v1
21 @r22 = global i32(i8*)* @f1
22
23 @a21 = alias i32, i32* @v1
24 @a22 = alias i16, bitcast (i32* @v1 to i16*)
25
26 @a23 = alias i32(i8*), i32(i8*)* @f1
27 @a24 = alias i16, bitcast (i32(i8*)* @f1 to i16*)
28 @a25 = alias i16, i16* @a24