[PATCH] D120592: [X86] Fix handling of Address-Size override prefix

Kan Shengchen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 27 20:28:35 PST 2022


skan requested changes to this revision.
skan added a comment.
This revision now requires changes to proceed.

I think this patch is totally wrong. We need address size override prefix only when the instruction has a memory operand.The address-size override prefix (67H) allows programs to switch between 16- and 32-bit addressing. Either size can be the default; the prefix selects the non-default size. Using this prefix and/or other undefined opcodes when operands for the instruction do not reside in memory is reserved; such use may cause unpredictable behavior.  Whether a instruction need ASZ should be included in the definition of the instruction in tablgen.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120592/new/

https://reviews.llvm.org/D120592



More information about the llvm-commits mailing list