mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-07 10:42:16 +00:00
[compatibility.ll] Cover explicitly named comdats.
Patch by Vedant Kumar! <vsk@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244284 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c169fa6f10
commit
3153f23b24
test/Bitcode
@ -40,6 +40,14 @@ $comdat.samesize = comdat samesize
|
|||||||
@comdat.samesize = global i32 0, comdat
|
@comdat.samesize = global i32 0, comdat
|
||||||
; CHECK: @comdat.samesize = global i32 0, comdat
|
; CHECK: @comdat.samesize = global i32 0, comdat
|
||||||
|
|
||||||
|
; Force two globals from different comdats into sections with the same name.
|
||||||
|
$comdat1 = comdat any
|
||||||
|
$comdat2 = comdat any
|
||||||
|
@g.comdat1 = global i32 0, section "SharedSection", comdat($comdat1)
|
||||||
|
; CHECK: @g.comdat1 = global i32 0, section "SharedSection", comdat($comdat1)
|
||||||
|
@g.comdat2 = global i32 0, section "SharedSection", comdat($comdat2)
|
||||||
|
; CHECK: @g.comdat2 = global i32 0, section "SharedSection", comdat($comdat2)
|
||||||
|
|
||||||
;; Constants
|
;; Constants
|
||||||
@const.true = constant i1 true
|
@const.true = constant i1 true
|
||||||
; CHECK: @const.true = constant i1 true
|
; CHECK: @const.true = constant i1 true
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user