Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / ExecutionEngine / JITLink / x86-64 / COFF_common_symbol.s
blobcd1401ebd33a35c3cb036f6988977268166749d0
1 # REQUIRES: asserts
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %t
3 # RUN: llvm-jitlink --debug-only=jitlink -noexec %t 2>&1 | FileCheck %s
5 # Check a common symbol is created.
7 # CHECK: Creating graph symbols...
8 # CHECK: 7: Creating defined graph symbol for COFF symbol "var" in (common) (index: 0)
9 # CHECK-NEXT: 0x0 (block + 0x00000000): size: 0x00000004, linkage: strong, scope: default, dead - var
11 .text
13 .def main;
14 .scl 2;
15 .type 32;
16 .endef
17 .globl main
18 .p2align 4
19 main:
20 movl var(%rip), %eax
21 retq
23 .comm var,4,2