summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
authorSean Silva <chisophugis@gmail.com>2015-08-06 22:04:21 +0000
committerSean Silva <chisophugis@gmail.com>2015-08-06 22:04:21 +0000
commitc2b70bf999be5647f151e3b6d9e1a7193f8bffbf (patch)
tree4c07f74777748b354421cc569140680995321127 /llvm/test/Bitcode
parent6cdd2fe0a9c2cf163981e5e518e355e8a993cd1e (diff)
downloadbcm5719-llvm-c2b70bf999be5647f151e3b6d9e1a7193f8bffbf.tar.gz
bcm5719-llvm-c2b70bf999be5647f151e3b6d9e1a7193f8bffbf.zip
[compatibility.ll] Cover explicitly named comdats.
Patch by Vedant Kumar! <vsk@apple.com> llvm-svn: 244284
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/compatibility-3.6.ll8
-rw-r--r--llvm/test/Bitcode/compatibility-3.6.ll.bcbin10080 -> 10192 bytes
2 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/compatibility-3.6.ll b/llvm/test/Bitcode/compatibility-3.6.ll
index be4419cf8f6..f7baa60a8a4 100644
--- a/llvm/test/Bitcode/compatibility-3.6.ll
+++ b/llvm/test/Bitcode/compatibility-3.6.ll
@@ -40,6 +40,14 @@ $comdat.samesize = comdat samesize
@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
@const.true = constant i1 true
; CHECK: @const.true = constant i1 true
diff --git a/llvm/test/Bitcode/compatibility-3.6.ll.bc b/llvm/test/Bitcode/compatibility-3.6.ll.bc
index 2afb9d5ee87..d75cbca7fb1 100644
--- a/llvm/test/Bitcode/compatibility-3.6.ll.bc
+++ b/llvm/test/Bitcode/compatibility-3.6.ll.bc
Binary files differ
OpenPOWER on IntegriCloud