1 # RUN: llvm-mc -triple i686-windows-gnu -filetype obj -o - %s \
2 # RUN: | llvm-readobj --coff-directives --symbols | FileCheck %s
4 # NOTE: this test checks multiple things:
5 # - that -aligncomm is not emitted for 1-byte alignment
6 # - that -aligncomm is emitted for the various alignments (greater than 1)
7 # - that the alignment is represented as a log_2 of the alignment
8 # - that the section switching occurs correctly
9 # - that functions after the switch also are emitted into the correct section
27 .comm _small_but_overaligned,1,3 # @s_4
38 # CHECK-NOT: -aligncomm:"_s_1",0
43 # CHECK: Section: .text (1)
46 # CHECK: Name: _small_but_overaligned
48 # CHECK-NEXT:Section: IMAGE_SYM_UNDEFINED (0)
52 # CHECK: Section: .text (1)
56 # CHECK: Directive(s): -aligncomm:"_s_2",1 -aligncomm:"_s_4",2 -aligncomm:"_s_8",3 -aligncomm:"_small_but_overaligned",3