Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / shrinkwrapping-popf.s
blob9e1dcd54a617eb22fb1a5c31aa09abc98e13bd8d
1 # This test checks that POPF will not crash our frame analysis pass
3 # REQUIRES: system-linux
5 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
6 # RUN: link_fdata %s %t.o %t.fdata
7 # RUN: llvm-strip --strip-unneeded %t.o
8 # RUN: %clang %cflags %t.o -o %t.exe -Wl,-q -nostdlib
9 # RUN: llvm-bolt %t.exe -o %t.out --data %t.fdata --frame-opt=all --lite=0
12 .globl _start
13 _start:
14 .cfi_startproc
15 # FDATA: 0 [unknown] 0 1 _start 0 0 6
16 je a
17 b: jne _start
18 # FDATA: 1 _start #b# 1 _start #c# 0 3
21 pushf
22 push %rbx
23 push %rbp
24 addq $0x50, -0x30(%rbp)
25 pop %rbp
26 pop %rbx
27 popf
29 # This basic block is treated as having 0 execution count.
31 ud2
32 .cfi_endproc