summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2012-03-09 17:52:49 +0000
committerKevin Enderby <enderby@apple.com>2012-03-09 17:52:49 +0000
commitfaf72ffda3bf83b08769428129ee4755787ee6cf (patch)
tree645b3e62f0af088abacb1e31e869e8610b8b701c /utils
parent75c0d8e0d8f4e10587985b950f2c0752e45e099e (diff)
downloadllvm-faf72ffda3bf83b08769428129ee4755787ee6cf.tar.gz
llvm-faf72ffda3bf83b08769428129ee4755787ee6cf.tar.bz2
llvm-faf72ffda3bf83b08769428129ee4755787ee6cf.tar.xz
Fix the x86 disassembler to at least print the lock prefix if it is the first
prefix. Added a FIXME to remind us this still does not work when it is not the first prefix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/X86RecognizableInstr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/X86RecognizableInstr.cpp b/utils/TableGen/X86RecognizableInstr.cpp
index 5bf473d95e..6bbc929d26 100644
--- a/utils/TableGen/X86RecognizableInstr.cpp
+++ b/utils/TableGen/X86RecognizableInstr.cpp
@@ -405,13 +405,13 @@ RecognizableInstr::filter_ret RecognizableInstr::filter() const {
return FILTER_STRONG;
- // Filter out artificial instructions
+ // Filter out artificial instructions but leave in the LOCK_PREFIX so it is
+ // printed as a separate "instruction".
if (Name.find("_Int") != Name.npos ||
Name.find("Int_") != Name.npos ||
Name.find("_NOREX") != Name.npos ||
- Name.find("2SDL") != Name.npos ||
- Name == "LOCK_PREFIX")
+ Name.find("2SDL") != Name.npos)
return FILTER_STRONG;
// Filter out instructions with segment override prefixes.