Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / Inputs / jump_table_footprint_reduction.s
blob5937d1a09c7bb1974996f53e7fa90c15d00df5e5
1 .text
2 .globl main
3 .type main, %function
4 main:
5 # FDATA: 0 [unknown] 0 1 main 0 0 1
6 .cfi_startproc
7 LBB00:
8 subq $0x8, %rsp
9 .cfi_def_cfa_offset 16
10 movl $Input, %esi
11 movl $SYMBOLat0x4006c4, %edi
12 xorl %eax, %eax
13 movl $0x0, Input(%rip)
14 callq scanf@PLT
15 movl Input(%rip), %edx
16 movl $0xf4240, %eax
17 LBB00_br: movl %edx, %esi
18 # FDATA: 1 main #LBB00_br# 1 main #Ltmp9# 0 0
20 Ltmp9:
21 cmpl $0x8, %edx
22 Ltmp9_br: ja Ltmp0
23 # FDATA: 1 main #Ltmp9_br# 1 main #Ltmp0# 0 0
24 # FDATA: 1 main #Ltmp9_br# 1 main #LFT0# 0 40
26 LFT0:
27 movl %edx, %ecx
28 LFT0_br: jmpq *"JUMP_TABLE/main.0"(,%rcx,8)
29 # FDATA: 1 main #LFT0_br# 1 main #Ltmp8# 0 0
30 # FDATA: 1 main #LFT0_br# 1 main #Ltmp7# 0 0
31 # FDATA: 1 main #LFT0_br# 1 main #Ltmp3# 0 0
32 # FDATA: 1 main #LFT0_br# 1 main #Ltmp2# 0 40
33 # FDATA: 1 main #LFT0_br# 1 main #Ltmp1# 0 0
34 # FDATA: 1 main #LFT0_br# 1 main #Ltmp5# 0 0
35 # FDATA: 1 main #LFT0_br# 1 main #Ltmp4# 0 0
36 # FDATA: 1 main #LFT0_br# 1 main #Ltmp6# 0 0
37 # FDATA: 1 main #LFT0_br# 1 main #Ltmp0# 0 0
39 Ltmp8:
40 Ltmp8_br: addl $0xa, %esi
41 # FDATA: 1 main #Ltmp8_br# 1 main #Ltmp10# 0 0
43 Ltmp10:
44 subl $0x1, %eax
45 Ltmp10_br: jne Ltmp9
46 # FDATA: 1 main #Ltmp10_br# 1 main #Ltmp9# 0 45
47 # FDATA: 1 main #Ltmp10_br# 1 main #LFT1# 0 0
49 LFT1:
50 movl $SYMBOLat0x4006c7, %edi
51 xorl %eax, %eax
52 movl %esi, Value(%rip)
53 callq printf@PLT
54 xorl %eax, %eax
55 addq $0x8, %rsp
56 .cfi_def_cfa_offset 8
57 retq
58 .cfi_def_cfa %rsp, 16
60 Ltmp7:
61 addl $0x9, %esi
62 Ltmp7_br: jmp Ltmp10
63 # FDATA: 1 main #Ltmp7_br# 1 main #Ltmp10# 0 0
65 Ltmp3:
66 addl $0x5, %esi
67 Ltmp3_br: jmp Ltmp10
68 # FDATA: 1 main #Ltmp3_br# 1 main #Ltmp10# 0 0
70 Ltmp2:
71 addl $0x4, %esi
72 Ltmp2_br: jmp Ltmp10
73 # FDATA: 1 main #Ltmp2_br# 1 main #Ltmp10# 0 43
75 Ltmp1:
76 addl $0x3, %esi
77 Ltmp1_br: jmp Ltmp10
78 # FDATA: 1 main #Ltmp1_br# 1 main #Ltmp10# 0 0
80 Ltmp5:
81 addl $0x7, %esi
82 Ltmp5_br: jmp Ltmp10
83 # FDATA: 1 main #Ltmp5_br# 1 main #Ltmp10# 0 0
85 Ltmp4:
86 addl $0x6, %esi
87 Ltmp4_br: jmp Ltmp10
88 # FDATA: 1 main #Ltmp4_br# 1 main #Ltmp10# 0 0
90 Ltmp6:
91 addl $0x8, %esi
92 Ltmp6_br: jmp Ltmp10
93 # FDATA: 1 main #Ltmp6_br# 1 main #Ltmp10# 0 0
95 Ltmp0:
96 addl $0x2, %esi
97 Ltmp0_br: jmp Ltmp10
98 # FDATA: 1 main #Ltmp0_br# 1 main #Ltmp10# 0 0
100 .cfi_endproc
101 .size main, .-main
102 # Jump tables
103 .section .rodata
104 "JUMP_TABLE/main.0":
105 .quad Ltmp0
106 .quad Ltmp1
107 .quad Ltmp2
108 .quad Ltmp3
109 .quad Ltmp4
110 .quad Ltmp5
111 .quad Ltmp6
112 .quad Ltmp7
113 .quad Ltmp8
115 # BinaryData
116 "SYMBOLat0x4006c4":
117 "SYMBOLat0x4006c7":
118 .section .bss
119 "Value":
120 "Input":