[PATCH] D84709: [X86] Add support for {disp32} to control size of jmp and jcc instructions in the assembler

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 27 16:04:40 PDT 2020


craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel, echristo.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

By default we pick a 1 byte displacement and let relaxation enlarge it if necessary. The GNU assembler supports a pseudo prefix to basically pre-relax the instruction the larger size.

I plan to add {disp8} and {disp32} support for memory operands in another patch which is why I've included the parsing code and enum for {disp8} pseudo prefix as well.


https://reviews.llvm.org/D84709

Files:
  llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
  llvm/test/MC/X86/x86-16.s
  llvm/test/MC/X86/x86-32.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84709.281071.patch
Type: text/x-patch
Size: 3160 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200727/baddf71c/attachment.bin>


More information about the llvm-commits mailing list