This is an archive of the discontinued LLVM Phabricator instance.

[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
disassembler silently drops the prefix.

The fix is to select a proper instruction with a builtin LOCK prefix if
one exists.

Diff Detail

Repository
rL LLVM

Event Timeline

maksfb created this revision.Jul 5 2018, 2:57 PM
This revision is now accepted and ready to land.Jul 5 2018, 3:17 PM
This revision was automatically updated to reflect the committed changes.