/// constraint. For example, "$Rn = $Rd".
string TwoOperandAliasConstraint = "";
+ /// Does the instruction mnemonic allow '.'
+ bit MnemonicContainsDot = 0;
+
///@}
/// UseNamedOperandTable - If set, the operand indices of this instruction
}
case '.':
- if (InTok)
- AsmOperands.push_back(AsmOperand(String.slice(Prev, i)));
- Prev = i;
+ if (!(TheDef->getValue("MnemonicContainsDot")) ||
+ !(TheDef->getValueAsBit("MnemonicContainsDot"))) {
+ if (InTok)
+ AsmOperands.push_back(AsmOperand(String.slice(Prev, i)));
+ Prev = i;
+ }
InTok = true;
break;
}
if (AliasesFromMnemonic.empty())
return;
-
+
// Process each alias a "from" mnemonic at a time, building the code executed
// by the string remapper.
std::vector<StringMatcher::StringPair> Cases;