mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 20:12:56 +02:00
Replace assertion failure for badly formatted CPS instrution with error message.
llvm-svn: 158445
This commit is contained in:
parent
6dd02e5fe3
commit
2a7d06a53e
@ -3284,7 +3284,8 @@ ARMAsmParser::OperandMatchResultTy ARMAsmParser::
|
||||
parseProcIFlagsOperand(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
|
||||
SMLoc S = Parser.getTok().getLoc();
|
||||
const AsmToken &Tok = Parser.getTok();
|
||||
assert(Tok.is(AsmToken::Identifier) && "Token is not an Identifier");
|
||||
if (!Tok.is(AsmToken::Identifier))
|
||||
return MatchOperand_NoMatch;
|
||||
StringRef IFlagsStr = Tok.getString();
|
||||
|
||||
// An iflags string of "none" is interpreted to mean that none of the AIF
|
||||
|
@ -315,3 +315,9 @@
|
||||
@ CHECK-ERRORS: error: coprocessor option must be an immediate in range [0, 255]
|
||||
@ CHECK-ERRORS: ldc2 p2, c8, [r1], { -1 }
|
||||
@ CHECK-ERRORS: ^
|
||||
|
||||
@ Bad CPS instruction format.
|
||||
cps f,#1
|
||||
@ CHECK-ERRORS: error: invalid operand for instruction
|
||||
@ CHECK-ERRORS: cps f,#1
|
||||
@ CHECK-ERRORS: ^
|
||||
|
Loading…
Reference in New Issue
Block a user