Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / ExecutionEngine / JITLink / x86-64 / COFF_pdata_no_strip.s
blob80f4f15afd169b587ca12cf885d8b0949a1e19bd
1 # RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %t
2 # RUN:
3 # RUN: llvm-jitlink -abs __ImageBase=0xdeadbeaf -noexec %t \
4 # RUN: -slab-allocate 100Kb -slab-address 0xfff00000 -slab-page-size 4096 \
5 # RUN: -show-graphs='.*' -noexec 2>&1 | FileCheck %s
7 # Check that basic seh frame inside pdata of alive function is not dead-stripped out.
8 # CHECK: section .xdata:
9 # CHECK-EMPTY:
10 # CHECK-NEXT: block 0xfff00000 size = 0x00000008, align = 4, alignment-offset = 0
11 # CHECK-NEXT: symbols:
12 # CHECK-NEXT: 0xfff00000 (block + 0x00000000): size: 0x00000008, linkage: strong, scope: local, live - .xdata
14 .text
16 .def main;
17 .scl 2;
18 .type 32;
19 .endef
20 .globl main
21 .p2align 4, 0x90
22 main:
23 .seh_proc main
24 subq $40, %rsp
25 .seh_stackalloc 40
26 .seh_endprologue
27 movl $0, 36(%rsp)
28 nop
29 addq $40, %rsp
30 retq
31 .seh_endproc