[llvm-dev] x86: How to Force 2-byte `jmp` instruction in lowering

Rafael EspĂ­ndola via llvm-dev llvm-dev at lists.llvm.org
Tue Jun 28 19:06:32 PDT 2016


On 22 June 2016 at 16:36, Dean Michael Berris via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Peter suggested just writing out '.byte 0xeb, 0x09' and that allowed the
> jump instruction to bypass the relaxation, so that fixes my immediate
> problem. The question still stands though whether it should be possible to
> do through the instruction builder interface.
>

I don't think so. When the relax-all flag is on MC will relax all instructions.

Cheers,
Rafael


More information about the llvm-dev mailing list