]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/testsuite/gas/bpf/jump-relax-jump.s
bpf: gas: support relaxation of V4 jump instructions
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / bpf / jump-relax-jump.s
1 ;; The following two instructions have constant targets that
2 ;; fix in the jump 16-bit signed displacement operand.
3 1: jeq %r1, %r2, -32768
4 jlt %r1, %r2, 32767
5 ;; The following instruction refers to a defined symbol that
6 ;; is on reach, so it should not be relaxed.
7 jle %r1, %r2, 1b
8 ;; The following instructions are relaxed to sequences
9 ;; involving unconditional jumps, so they can fi their
10 ;; displacements.
11 jge %r1, %r2, -32769
12 jgt %r1, %r2, 32768
13 ;; The following instructions refer to a defined symbol that
14 ;; is not on reach. They shall be relaxed.
15 jeq %r1, %r2, tail
16 tail = .text + 262160
17 jgt %r1, %r2, tail