gas/
[binutils.git] / gold / testsuite / arm_thm_jump8.s
blob540a243ff73def8ac60fdd24ffd44a139cc72a4b
1 # arm_thm_jump8.s
2 # Test R_ARM_THM_JUMP8 relocations just within the branch range limits.
3 .syntax unified
4 .arch armv5te
6 .section .text.pre,"x"
8 # Add padding so that target is just in branch range.
9 .space 8
11 .global _backward_target
12 .code 16
13 .thumb_func
14 .type _backword_target, %function
15 _backward_target:
16 bx lr
17 .size _backward_target, .-_backward_target
19 .text
21 # Define _start so that linker does not complain.
22 .global _start
23 .code 32
24 .align 2
25 .type _start, %function
26 _start:
27 bx lr
28 .size _start, .-_start
30 .global _backward_test
31 .code 16
32 .thumb_func
33 .type _backward_test, %function
34 _backward_test:
35 beq.n _backward_target
36 .size _backward_test, .-_backward_test
38 .global _forward_test
39 .code 16
40 .thumb_func
41 .type _forward_test, %function
42 _forward_test:
43 beq.n _forward_target
44 .size _forward_test, .-_forward_test
46 .section .text.post,"x"
48 # Add padding so that target is just in branch range.
49 .space 8
51 .global _forward_target
52 .code 16
53 .thumb_func
54 .type _forward_target, %function
55 _forward_target:
56 bx lr
57 .size _forward_target, .-_forward_target