aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/large-global.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2012-06-22 20:14:46 +0000
committerEvan Cheng <evan.cheng@apple.com>2012-06-22 20:14:46 +0000
commitc90a1fcf9f44858b20e0f5f7e0b98049aec7a1e0 (patch)
tree185437fef56a5df34efd95b8566d02f13ff9c9d6 /test/CodeGen/X86/large-global.ll
parent04ce06dc4c9dff4ff7a8b97079e3cbb7b60da3ab (diff)
downloadexternal_llvm-c90a1fcf9f44858b20e0f5f7e0b98049aec7a1e0.zip
external_llvm-c90a1fcf9f44858b20e0f5f7e0b98049aec7a1e0.tar.gz
external_llvm-c90a1fcf9f44858b20e0f5f7e0b98049aec7a1e0.tar.bz2
EmitZerofill should take a 64-bit size or else it's chopping off large zero-filled global. rdar://11729134
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/large-global.ll')
-rw-r--r--test/CodeGen/X86/large-global.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/large-global.ll b/test/CodeGen/X86/large-global.ll
new file mode 100644
index 0000000..7cb974b
--- /dev/null
+++ b/test/CodeGen/X86/large-global.ll
@@ -0,0 +1,11 @@
+; RUN: llc < %s -mtriple=x86_64-apple-macosx | FileCheck %s
+; rdar://11729134
+
+; EmitZerofill was incorrectly expecting a 32-bit "size" so 26214400000
+; was printed as 444596224
+
+%struct.X = type { [25000 x i8] }
+
+@gArray = global [1048576 x %struct.X] zeroinitializer, align 16
+
+; CHECK: .zerofill __DATA,__common,_gArray,26214400000,4