mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-15 19:24:33 +00:00
[x86] Rename In32BitMode predicate to Not64BitMode
That's what it actually means, and with 16-bit support it's going to be a little more relevant since in a few corner cases we may actually want to distinguish between 16-bit and 32-bit mode (for example the bare 'push' aliases to pushw/pushl etc.) Patch by David Woodhouse git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197768 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -265,11 +265,12 @@ RecognizableInstr::RecognizableInstr(DisassemblerTables &tables,
|
||||
// FIXME: Is there some better way to check for In64BitMode?
|
||||
std::vector<Record*> Predicates = Rec->getValueAsListOfDefs("Predicates");
|
||||
for (unsigned i = 0, e = Predicates.size(); i != e; ++i) {
|
||||
if (Predicates[i]->getName().find("32Bit") != Name.npos) {
|
||||
if (Predicates[i]->getName().find("Not64Bit") != Name.npos ||
|
||||
Predicates[i]->getName().find("In32Bit") != Name.npos) {
|
||||
Is32Bit = true;
|
||||
break;
|
||||
}
|
||||
if (Predicates[i]->getName().find("64Bit") != Name.npos) {
|
||||
if (Predicates[i]->getName().find("In64Bit") != Name.npos) {
|
||||
Is64Bit = true;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user