Revert r354244 "[DAGCombiner] Eliminate dead stores to stack."
[llvm-complete.git] / test / MC / COFF / bigobj.py
blob7908fb3364f621064e1037dcfd71331b065775e4
1 # RUN: python %s | llvm-mc -filetype=obj -triple i686-pc-win32 - | llvm-readobj -h | FileCheck %s
3 from __future__ import print_function
5 # This test checks that the COFF object emitter can produce objects with
6 # more than 65279 sections.
8 # While we only generate 65277 sections, an implicit .text, .data and .bss will
9 # also be emitted. This brings the total to 65280.
10 num_sections = 65277
12 # CHECK: ImageFileHeader {
13 # CHECK-NEXT: Machine: IMAGE_FILE_MACHINE_I386
14 # CHECK-NEXT: SectionCount: 65280
15 # CHECK-NEXT: TimeDateStamp: {{[0-9]+}}
16 # CHECK-NEXT: PointerToSymbolTable: 0x{{[0-9A-F]+}}
17 # CHECK-NEXT: SymbolCount: 195837
18 # CHECK-NEXT: OptionalHeaderSize: 0
19 # CHECK-NEXT: Characteristics [ (0x0)
20 # CHECK-NEXT: ]
21 # CHECK-NEXT: }
23 for i in range(0, num_sections):
24 print(""" .section .bss,"bw",discard,_b%d
25 .globl _b%d # @b%d
26 _b%d:
27 .byte 0 # 0x0
28 """ % (i, i, i, i))