Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / Inputs / jump_table_reference.s
blob2380a2bf5c6ea0553338aadb36e0d2cc6e5ddee5
2 .text
3 .globl main
4 .type main, %function
5 main:
6 .cfi_startproc
7 cmpq $0x3, %rdi
8 jae .L4
9 cmpq $0x1, %rdi
10 jne .Ldo_jump
11 jmpq *jt+8
12 .Ldo_jump:
13 jmpq *jt(,%rdi,8)
14 .L1:
15 movq $0x1, %rax
16 jmp .L5
17 .L2:
18 movq $0x0, %rax
19 jmp .L5
20 .L3:
21 movq $0x2, %rax
22 jmp .L5
23 .L4:
24 mov $0x3, %rax
25 .L5:
26 retq
27 .cfi_endproc
29 .section .rodata
30 .align 16
31 .globl jt
32 jt:
33 .quad .L1
34 .quad .L2
35 .quad .L3