Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / jump-table-move.s
blobbfe0eea0c53f37d5109f26f60a704d96c3645d67
1 # REQUIRES: system-linux
3 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
4 # RUN: %clang %cflags -no-pie %t.o -o %t.exe -Wl,-q
5 # RUN: llvm-bolt %t.exe -o %t.out --lite=0 -v=1 --jump-tables=move 2>&1 | FileCheck %s
7 # CHECK-NOT: unclaimed PC-relative relocations left in data
8 # CHECK: BOLT-INFO: marking main.cold.1 as a fragment of main
9 # CHECK: BOLT-WARNING: Ignoring main.cold.1
10 # CHECK: BOLT-WARNING: Ignoring main
12 .text
13 .globl main
14 .type main, %function
15 .p2align 2
16 main:
17 cmpl $0x67, %edi
18 jne main.cold.1
19 LBB0:
20 retq
21 .size main, .-main
23 .globl main.cold.1
24 .type main.cold.1, %function
25 .p2align 2
26 main.cold.1:
27 jmpq *JUMP_TABLE(,%rcx,8)
28 .size main.cold.1, .-main.cold.1
30 .rodata
31 .globl JUMP_TABLE
32 JUMP_TABLE:
33 .quad LBB0
34 .quad LBB0