[llvm] r244284 - [compatibility.ll] Cover explicitly named comdats.
Sean Silva via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 6 15:04:21 PDT 2015
Author: silvas
Date: Thu Aug 6 17:04:21 2015
New Revision: 244284
URL: http://llvm.org/viewvc/llvm-project?rev=244284&view=rev
Log:
[compatibility.ll] Cover explicitly named comdats.
Patch by Vedant Kumar! <vsk at apple.com>
Modified:
llvm/trunk/test/Bitcode/compatibility-3.6.ll
llvm/trunk/test/Bitcode/compatibility-3.6.ll.bc
Modified: llvm/trunk/test/Bitcode/compatibility-3.6.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/compatibility-3.6.ll?rev=244284&r1=244283&r2=244284&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/compatibility-3.6.ll (original)
+++ llvm/trunk/test/Bitcode/compatibility-3.6.ll Thu Aug 6 17:04:21 2015
@@ -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
+ at g.comdat1 = global i32 0, section "SharedSection", comdat($comdat1)
+; CHECK: @g.comdat1 = global i32 0, section "SharedSection", comdat($comdat1)
+ at 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
Modified: llvm/trunk/test/Bitcode/compatibility-3.6.ll.bc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/compatibility-3.6.ll.bc?rev=244284&r1=244283&r2=244284&view=diff
==============================================================================
Binary files llvm/trunk/test/Bitcode/compatibility-3.6.ll.bc (original) and llvm/trunk/test/Bitcode/compatibility-3.6.ll.bc Thu Aug 6 17:04:21 2015 differ
More information about the llvm-commits
mailing list