[PATCH] D88772: [X86] Temporarily set Mode32Bit when matching an instruction with the data32 prefix

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 21:01:29 PDT 2020


MaskRay created this revision.
MaskRay added reviewers: craig.topper, RKSimon, spatel.
Herald added subscribers: llvm-commits, pengfei, hiraditya.
Herald added a project: LLVM.
MaskRay requested review of this revision.

PR47632

This allows MC to match `data32 ljmp` as ljmpl.

The compatibility with GNU as improves: `data32 lgdt` will be matched as `lgdtl` (prefixes: 0x67 0x66, instead of 0x66 0x67).

GNU as supports many other `data32 *l`, which we currently hard code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88772

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88772.295956.patch
Type: text/x-patch
Size: 3084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201003/5b469f8c/attachment.bin>


More information about the llvm-commits mailing list