[all-commits] [llvm/llvm-project] e297d9: [X86] Add assembler support for {disp8} and {disp3...

topperc via All-commits all-commits at lists.llvm.org
Sat Aug 1 14:13:20 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e297d928dcde31ac92eff72532095f4f657f2ebd
      https://github.com/llvm/llvm-project/commit/e297d928dcde31ac92eff72532095f4f657f2ebd
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-08-01 (Sat, 01 Aug 2020)

  Changed paths:
    M llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
    M llvm/lib/Target/X86/MCTargetDesc/X86BaseInfo.h
    M llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
    M llvm/test/MC/X86/x86-64.s

  Log Message:
  -----------
  [X86] Add assembler support for {disp8} and {disp32} to control the size of displacement used for memory operands.

These prefixes should override the default behavior and force a larger immediate size. I don't believe gas issues any warning if you use {disp8} when a 32-bit displacement is already required. And this patch doesn't either.

This completes the {disp8} and {disp32} support from PR46650.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D84793




More information about the All-commits mailing list