diff options
author | Evan Cheng <evan.cheng@apple.com> | 2012-06-22 20:14:46 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2012-06-22 20:14:46 +0000 |
commit | c90a1fcf9f44858b20e0f5f7e0b98049aec7a1e0 (patch) | |
tree | 185437fef56a5df34efd95b8566d02f13ff9c9d6 /test/CodeGen/X86/large-global.ll | |
parent | 04ce06dc4c9dff4ff7a8b97079e3cbb7b60da3ab (diff) | |
download | external_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.ll | 11 |
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 |