[all-commits] [llvm/llvm-project] 2ce1a6: [X86] Always use 16-bit displacement in 16-bit mod...

topperc via All-commits all-commits at lists.llvm.org
Tue Sep 15 19:34:06 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ce1a697f037469e737db1ad41dfa14ec653ec53
      https://github.com/llvm/llvm-project/commit/2ce1a697f037469e737db1ad41dfa14ec653ec53
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-09-15 (Tue, 15 Sep 2020)

  Changed paths:
    M llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
    M llvm/test/MC/X86/x86-16.s

  Log Message:
  -----------
  [X86] Always use 16-bit displacement in 16-bit mode when there is no base or index register.

Previously we only did this if the immediate fit in 16 bits, but
the GNU assembler seems to just truncate.

Fixes PR46952




More information about the All-commits mailing list