3 # Test THUMB/THUMB-2 blx instructions just within the branch range limits.
4 # Because bit 1 of the branch target comes from the branch instruction
5 # address, the branch range from PC (branch instruction address + 4) is
6 # acutally -((1<<22) + 2) to ((1<<22) - 4) for THUMB and -((1<<24) + 2) to
7 # ((1<<24) - 4) from THUMB2.
10 .section .text.pre,"x"
12 # Add padding so that target is just in branch range.
16 .global _backward_target
18 .type _backword_target, %function
21 .size _backward_target, .-_backward_target
25 # Define _start so that linker does not complain.
29 .type _start, %function
32 .size _start, .-_start
34 .global _backward_test
37 .type _backward_test, %function
41 .size _backward_test, .-_backward_test
47 .type _forward_test, %function
50 .size _forward_test, .-_forward_test
53 .section .text.post,"x"
55 # Add padding so that target is just in branch range.
59 .global _forward_target
61 .type _forward_target, %function
64 .size _forward_target, .-_forward_target