Files
clang-p2996/bolt/test/X86/Inputs/jump_table_reference.s
Amir Ayupov c74e5bfee3 [BOLT][TEST] Imported small tests
Summary:
Imported small internal tests:
- jmp_optimization.test
- jmpjmp.test
- jump_table_footprint_reduction.test
- jump_table_reference.test

(cherry picked from FBD31483122)
2021-10-06 16:20:00 -07:00

36 lines
405 B
ArmAsm

.text
.globl main
.type main, %function
main:
.cfi_startproc
cmpq $0x3, %rdi
jae .L4
cmpq $0x1, %rdi
jne .Ldo_jump
jmpq *jt+8
.Ldo_jump:
jmpq *jt(,%rdi,8)
.L1:
movq $0x1, %rax
jmp .L5
.L2:
movq $0x0, %rax
jmp .L5
.L3:
movq $0x2, %rax
jmp .L5
.L4:
mov $0x3, %rax
.L5:
retq
.cfi_endproc
.section .rodata
.align 16
.globl jt
jt:
.quad .L1
.quad .L2
.quad .L3