diff options
author | Craig Topper <craig.topper@gmail.com> | 2011-08-25 07:42:00 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2011-08-25 07:42:00 +0000 |
commit | 113061d39b32ac2652d237abff7ee5a2a45d45c9 (patch) | |
tree | 79a75f9bc4abce1602a046eda0645dfa63843c9d /utils | |
parent | ea03659d2340725c157f1eb0950a1cae08a122c3 (diff) | |
download | llvm-113061d39b32ac2652d237abff7ee5a2a45d45c9.tar.gz llvm-113061d39b32ac2652d237abff7ee5a2a45d45c9.tar.bz2 llvm-113061d39b32ac2652d237abff7ee5a2a45d45c9.tar.xz |
Give ATTR_VEX higher priority when generating the disassembler context table. Fixes disassembling of VEX instructions with 'pp'=00. Fixes subset of PR10678.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138552 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/X86DisassemblerTables.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/X86DisassemblerTables.cpp b/utils/TableGen/X86DisassemblerTables.cpp index 74310593d2..3e48c0b6f3 100644 --- a/utils/TableGen/X86DisassemblerTables.cpp +++ b/utils/TableGen/X86DisassemblerTables.cpp @@ -515,6 +515,8 @@ void DisassemblerTables::emitContextTable(raw_ostream &o, uint32_t &i) const { o << "IC_VEX_XD"; else if ((index & ATTR_VEX) && (index & ATTR_XS)) o << "IC_VEX_XS"; + else if (index & ATTR_VEX) + o << "IC_VEX"; else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XS)) o << "IC_64BIT_REXW_XS"; else if ((index & ATTR_64BIT) && (index & ATTR_REXW) && (index & ATTR_XD)) @@ -538,8 +540,6 @@ void DisassemblerTables::emitContextTable(raw_ostream &o, uint32_t &i) const { o << "IC_XD"; else if (index & ATTR_OPSIZE) o << "IC_OPSIZE"; - else if (index & ATTR_VEX) - o << "IC_VEX"; else o << "IC"; |