brintos

brintos / llvm-project-archived public Read only

0
0
Text · 731 B · 1b2484c Raw
24 lines · plain
1// This input must be assembled by the GNU assembler, as llvm-mc does not emit2// the R_ARM_THM_JUMP11 and R_ARM_THM_JUMP8 relocations for a Thumb narrow3// branch. This is permissible by the ABI for the ARM architecture as the range4// of the Thumb narrow branch is short enough (+- 2048 bytes and +- 256 bytes5// respeticely) that widespread use would be impractical.6//7// The test case will use a pre compiled object arm-thumb-narrow-branch.o8 .syntax unified9 .section .caller, "ax",%progbits10 .thumb11 .align 212 .type callers,%function13 .globl callers14callers:15 b.n callee_low_far16 b.n callee_low17 b.n callee_high18 b.n callee_high_far19 beq.n callee_low_near20 beq.n callee_low21 beq.n callee_high22 beq.n callee_high_near23 bx lr24