summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-19 03:06:01 +0000
committerChris Lattner <sabre@nondot.org>2010-01-19 03:06:01 +0000
commitc7fbe903898ebf322cc375127bca85f4011cb266 (patch)
tree2493d313dc1182429ec39dd5bcb66dee7a3351d8 /test
parenta3839bc3714e6a84222f45cf4c0f1a20a88b10cd (diff)
downloadllvm-c7fbe903898ebf322cc375127bca85f4011cb266.tar.gz
llvm-c7fbe903898ebf322cc375127bca85f4011cb266.tar.bz2
llvm-c7fbe903898ebf322cc375127bca85f4011cb266.tar.xz
fix a significant difference between llvm and gcc on ELF systems:
GCC would put weak zero initialized mutable data in the .bss section, we would put it into a crasy '.gnu.linkonce.b.test,"aw",@nobits' section. Fixing this will allow simplifications next up. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93844 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/global-sections.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/X86/global-sections.ll b/test/CodeGen/X86/global-sections.ll
index 405adca6cd..b6caa4f27f 100644
--- a/test/CodeGen/X86/global-sections.ll
+++ b/test/CodeGen/X86/global-sections.ll
@@ -119,4 +119,19 @@
; LINUX:G9
+@G10 = weak global [100 x i32] zeroinitializer, align 32 ; <[100 x i32]*> [#uses=0]
+
+
+; DARWIN: .section __DATA,__datacoal_nt,coalesced
+; DARWIN: .globl _G10
+; DARWIN: .weak_definition _G10
+; DARWIN: .align 5
+; DARWIN: _G10:
+; DARWIN: .space 400
+
+; LINUX: .bss
+; LINUX: .weak G10
+; LINUX: .align 32
+; LINUX: G10:
+; LINUX: .zero 400