forked from OSchip/llvm-project
[Hexagon] Adding additional tokenization characters in preparation for removing spacing from syntax.
llvm-svn: 288637
This commit is contained in:
parent
7ef6ea324a
commit
5d19862b22
|
@ -1484,12 +1484,6 @@ unsigned HexagonAsmParser::validateTargetOperandClass(MCParsedAsmOperand &AsmOp,
|
|||
? Match_Success
|
||||
: Match_InvalidOperand;
|
||||
}
|
||||
case MCK__MINUS_1: {
|
||||
int64_t Value;
|
||||
return Op->isImm() && Op->Imm.Val->evaluateAsAbsolute(Value) && Value == -1
|
||||
? Match_Success
|
||||
: Match_InvalidOperand;
|
||||
}
|
||||
}
|
||||
if (Op->Kind == HexagonOperand::Token && Kind != InvalidMatchClass) {
|
||||
StringRef myStringRef = StringRef(Op->Tok.Data, Op->Tok.Length);
|
||||
|
|
|
@ -284,7 +284,7 @@ def HexagonAsmParser : AsmParser {
|
|||
|
||||
def HexagonAsmParserVariant : AsmParserVariant {
|
||||
int Variant = 0;
|
||||
string TokenizingCharacters = "#()=:.<>!+*";
|
||||
string TokenizingCharacters = "#()=:.<>!+*-|^&";
|
||||
}
|
||||
|
||||
def Hexagon : Target {
|
||||
|
|
|
@ -1388,7 +1388,7 @@ class NVJ_ConstImm_template<string mnemonic, bits<3> majOp, string ImmVal,
|
|||
(ins IntRegs:$src1, n1Const:$n1, brtarget:$offset),
|
||||
(ins IntRegs:$src1, brtarget:$offset)),
|
||||
"if ("#!if(isNegCond, "!","")#mnemonic
|
||||
#"($src1.new, #" # ImmVal # ")) jump:"
|
||||
#"($src1.new, #" # !if(!eq(ImmVal, "{-1}"), "$n1", ImmVal) # ")) jump:"
|
||||
#!if(isTak, "t","nt")#" $offset", []> {
|
||||
|
||||
let isTaken = isTak;
|
||||
|
|
Loading…
Reference in New Issue