comparison lld/test/ELF/Inputs/arm-thumb-narrow-branch.s @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 1d019706d866
children
comparison
equal deleted inserted replaced
232:70dce7da266c 236:c4bab56944e8
1 // This input must be assembled by the GNU assembler, as llvm-mc does not emit 1 // This input must be assembled by the GNU assembler, as llvm-mc does not emit
2 // the R_ARM_JUMP11 relocation for a Thumb narrow branch. This is permissible 2 // the R_ARM_THM_JUMP11 and R_ARM_THM_JUMP8 relocations for a Thumb narrow
3 // by the ABI for the ARM architecture as the range of the Thumb narrow branch 3 // branch. This is permissible by the ABI for the ARM architecture as the range
4 // is short enough (+- 2048 bytes) that widespread use would be impractical. 4 // of the Thumb narrow branch is short enough (+- 2048 bytes and +- 256 bytes
5 // respeticely) that widespread use would be impractical.
5 // 6 //
6 // The test case will use a pre compiled object arm-thumb-narrow-branch.o 7 // The test case will use a pre compiled object arm-thumb-narrow-branch.o
7 .syntax unified 8 .syntax unified
8 .section .caller, "ax",%progbits 9 .section .caller, "ax",%progbits
9 .thumb 10 .thumb
13 callers: 14 callers:
14 b.n callee_low_far 15 b.n callee_low_far
15 b.n callee_low 16 b.n callee_low
16 b.n callee_high 17 b.n callee_high
17 b.n callee_high_far 18 b.n callee_high_far
19 beq.n callee_low_near
20 beq.n callee_low
21 beq.n callee_high
22 beq.n callee_high_near
18 bx lr 23 bx lr