summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-06-13 22:15:25 +0000
committerCraig Topper <craig.topper@intel.com>2019-06-13 22:15:25 +0000
commitcf34a2bd5d6ec941e755d85e49525712453b0777 (patch)
treec99abfaf5faa60a26de8ae53451c401768181c4d /llvm/lib/Target
parent1c88445840c5412965d4bbee6f558d0dd7aed9b4 (diff)
downloadbcm5719-llvm-cf34a2bd5d6ec941e755d85e49525712453b0777.tar.gz
bcm5719-llvm-cf34a2bd5d6ec941e755d85e49525712453b0777.zip
[X86Disassembler] Unify the EVEX and VEX code in emitContextTable. Merge the ATTR_VEXL/ATTR_EVEXL bits. NFCI
Merging the two bits shrinks the context table from 16384 bytes to 8192 bytes. Remove the ATTRIBUTE_BITS macro and just create an enum directly. Then fix the ATTR_max define to be 8192 to reflect the table size so we stop hardcoding it separately. llvm-svn: 363330
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp b/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp
index 76aadc79402..a241362a271 100644
--- a/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp
+++ b/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp
@@ -882,7 +882,7 @@ static int getID(struct InternalInstruction* insn, const void *miiArg) {
if (aaaFromEVEX4of4(insn->vectorExtensionPrefix[3]))
attrMask |= ATTR_EVEXK;
if (lFromEVEX4of4(insn->vectorExtensionPrefix[3]))
- attrMask |= ATTR_EVEXL;
+ attrMask |= ATTR_VEXL;
if (l2FromEVEX4of4(insn->vectorExtensionPrefix[3]))
attrMask |= ATTR_EVEXL2;
} else if (insn->vectorExtensionType == TYPE_VEX_3B) {
OpenPOWER on IntegriCloud