Displaying 1 result from an estimated 1 matches for "getsubtargetinfo".
Did you mean:
gensubtargetinfo
2016 Jun 22
2
x86: How to Force 2-byte `jmp` instruction in lowering
...TempSymbol();
// Use a two-byte `jmp`. This version of JMP takes an 8-bit relative
offset as
// an operand (computed as an offset from the jmp instruction).
OutStreamer->EmitInstruction(
MCInstBuilder(X86::JMP_1)
.addExpr(MCSymbolRefExpr::create(Target, OutContext)),
getSubtargetInfo());
EmitNops(*OutStreamer, 9, Subtarget->is64Bit(), getSubtargetInfo());
OutStreamer->EmitLabel(Target);
Which turns into:
.Lxray_sled_0:
.palign 2, 0x90
jmp .Ltmp0
nopw 512(%rax,%rax,1)
.Ltmp0:
// rest of the code
Is there a way of forcing the lowered JMP instruction to turn i...