https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110781
Bug ID: 110781 Summary: bpf: make use of the V4 long-range jump instruction (jal/gotol) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jemarch at gcc dot gnu.org Target Milestone: --- The BPF V4 ISA introduces a new unconditional jump instruction (jal/gotol) that has a much wide target range compared to the previous jal/goto instruction: from PC-relative 16-bit to PC-relative 32-bit. We shall make GCC to generate this instruction when it needs to emit jumps that would be too long for the regular ja/goto instruction. But only if -mcpu=v4 is used.