If LOCK prefix is not the first prefix in an instruction, LLVM
disassembler silently drops the prefix.
The fix is to select a proper instruction with a builtin LOCK prefix if
one exists.
Paths
| Differential D49001
[X86][Disassembler] Fix LOCK prefix disassembler support ClosedPublic Authored by maksfb on Jul 5 2018, 2:57 PM.
Details Summary If LOCK prefix is not the first prefix in an instruction, LLVM The fix is to select a proper instruction with a builtin LOCK prefix if
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 5 2018, 3:17 PM Closed by commit rL336400: [X86][Disassembler] Fix LOCK prefix disassembler support (authored by maks). · Explain WhyJul 5 2018, 4:37 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 154334 llvm/trunk/lib/Target/X86/Disassembler/X86Disassembler.cpp
llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.h
llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp
llvm/trunk/test/MC/Disassembler/X86/prefixes.txt
|