annotate lld/test/ELF/Inputs/arm-thumb-narrow-branch.s @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents c4bab56944e8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // This input must be assembled by the GNU assembler, as llvm-mc does not emit
236
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
2 // the R_ARM_THM_JUMP11 and R_ARM_THM_JUMP8 relocations for a Thumb narrow
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
3 // branch. This is permissible by the ABI for the ARM architecture as the range
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
4 // of the Thumb narrow branch is short enough (+- 2048 bytes and +- 256 bytes
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
5 // respeticely) that widespread use would be impractical.
150
anatofuz
parents:
diff changeset
6 //
anatofuz
parents:
diff changeset
7 // The test case will use a pre compiled object arm-thumb-narrow-branch.o
anatofuz
parents:
diff changeset
8 .syntax unified
anatofuz
parents:
diff changeset
9 .section .caller, "ax",%progbits
anatofuz
parents:
diff changeset
10 .thumb
anatofuz
parents:
diff changeset
11 .align 2
anatofuz
parents:
diff changeset
12 .type callers,%function
anatofuz
parents:
diff changeset
13 .globl callers
anatofuz
parents:
diff changeset
14 callers:
anatofuz
parents:
diff changeset
15 b.n callee_low_far
anatofuz
parents:
diff changeset
16 b.n callee_low
anatofuz
parents:
diff changeset
17 b.n callee_high
anatofuz
parents:
diff changeset
18 b.n callee_high_far
236
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
19 beq.n callee_low_near
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
20 beq.n callee_low
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
21 beq.n callee_high
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
22 beq.n callee_high_near
150
anatofuz
parents:
diff changeset
23 bx lr