[all-commits] [llvm/llvm-project] 94fedd: [X86] Fix disassembly of x86-64 GDTLS code sequence

Andrew Ng via All-commits all-commits at lists.llvm.org
Tue Feb 2 03:35:26 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94fedd266125a5425aa33e11332bf414f0b6dc35
      https://github.com/llvm/llvm-project/commit/94fedd266125a5425aa33e11332bf414f0b6dc35
  Author: Andrew Ng <andrew.ng at sony.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp
    M llvm/test/MC/Disassembler/X86/x86-64.txt
    A llvm/test/tools/llvm-objdump/X86/disassemble-gdtls.s

  Log Message:
  -----------
  [X86] Fix disassembly of x86-64 GDTLS code sequence

For x86-64 the REX.w prefix takes precedence over any other size
override (i.e. 0x66). Therefore, for x86-64 when REX.w is present set
'hasOpSize' to false to ensure that any size override is ignored.

Fixes PR48901.

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




More information about the All-commits mailing list