xref: /llvm-project/bolt/test/X86/Inputs/jump_table_reference.s (revision 4c106cfdf7cf7eec861ad3983a3dd9a9e8f3a8ae)
1
2  .text
3  .globl main
4  .type main, %function
5main:
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
28
29  .section .rodata
30  .align 16
31  .globl jt
32jt:
33	.quad	.L1
34	.quad	.L2
35	.quad	.L3
36