aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/X86DisassemblerTables.cpp
diff options
context:
space:
mode:
authorPhoebe Wang <phoebe.wang@intel.com>2024-08-04 21:05:45 +0800
committerGitHub <noreply@github.com>2024-08-04 21:05:45 +0800
commit0dba5381d8c8e4cadc32a067bf2fe5e3486ae53d (patch)
tree89f86e506611220305b11ea84016ee22a46856e0 /llvm/utils/TableGen/X86DisassemblerTables.cpp
parent3c483b887e5a32a0ddc0a52a467b31f74aad25bb (diff)
downloadllvm-0dba5381d8c8e4cadc32a067bf2fe5e3486ae53d.zip
llvm-0dba5381d8c8e4cadc32a067bf2fe5e3486ae53d.tar.gz
llvm-0dba5381d8c8e4cadc32a067bf2fe5e3486ae53d.tar.bz2
[X86][AVX10.2] Support YMM rounding new instructions (#101825)
Ref.: https://cdrdv2.intel.com/v1/dl/getContent/828965
Diffstat (limited to 'llvm/utils/TableGen/X86DisassemblerTables.cpp')
-rw-r--r--llvm/utils/TableGen/X86DisassemblerTables.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/X86DisassemblerTables.cpp b/llvm/utils/TableGen/X86DisassemblerTables.cpp
index b0acd4ea..21c5e32 100644
--- a/llvm/utils/TableGen/X86DisassemblerTables.cpp
+++ b/llvm/utils/TableGen/X86DisassemblerTables.cpp
@@ -710,7 +710,7 @@ void DisassemblerTables::emitModRMDecision(raw_ostream &o1, raw_ostream &o2,
unsigned &i1, unsigned &i2,
unsigned &ModRMTableNum,
ModRMDecision &decision) const {
- static uint32_t sEntryNumber = 1;
+ static uint64_t sEntryNumber = 1;
ModRMDecisionType dt = getDecisionType(decision);
if (dt == MODRM_ONEENTRY && decision.instructionIDs[0] == 0) {
@@ -785,9 +785,9 @@ void DisassemblerTables::emitModRMDecision(raw_ostream &o1, raw_ostream &o2,
break;
}
- // We assume that the index can fit into uint16_t.
- assert(sEntryNumber < 65536U &&
- "Index into ModRMDecision is too large for uint16_t!");
+ // We assume that the index can fit into uint32_t.
+ assert(sEntryNumber < -1U &&
+ "Index into ModRMDecision is too large for uint32_t!");
(void)sEntryNumber;
}