Mercurial > hg > CbC > CbC_llvm
comparison test/Linker/comdat_group.ll @ 100:7d135dc70f03 LLVM 3.9
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
96:6418606d0ead | 100:7d135dc70f03 |
---|---|
1 ; Ensure complete comdat group is materialized | |
2 ; RUN: llvm-link %s -S | FileCheck %s | |
3 ; CHECK: $linkoncecomdat = comdat any | |
4 ; CHECK: @linkoncecomdat = linkonce global i32 2 | |
5 ; CHECK: @linkoncecomdat_unref_var = linkonce global i32 2, comdat($linkoncecomdat) | |
6 ; CHECK: define linkonce void @linkoncecomdat_unref_func() comdat($linkoncecomdat) | |
7 | |
8 $linkoncecomdat = comdat any | |
9 @linkoncecomdat = linkonce global i32 2, comdat($linkoncecomdat) | |
10 @linkoncecomdat_unref_var = linkonce global i32 2, comdat($linkoncecomdat) | |
11 define linkonce void @linkoncecomdat_unref_func() comdat($linkoncecomdat) { | |
12 ret void | |
13 } | |
14 ; Reference one member of comdat so that comdat is generated. | |
15 define void @ref_linkoncecomdat() { | |
16 load i32, i32* @linkoncecomdat, align 4 | |
17 ret void | |
18 } |