Allow exclamation and tilde to be parsed as a part of the ppc asm operand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203699 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Roman Divacky 2014-03-12 19:25:57 +00:00
parent b2ff2c7efa
commit 060c0eb1d2
2 changed files with 9 additions and 0 deletions

View File

@ -1205,6 +1205,8 @@ ParseOperand(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
case AsmToken::Integer:
case AsmToken::Dot:
case AsmToken::Dollar:
case AsmToken::Exclaim:
case AsmToken::Tilde:
if (!ParseExpression(EVal))
break;
/* fall through */

View File

@ -113,3 +113,10 @@
# CHECK: # encoding: [0x42,0x00,A,0bAAAAAA00]
bdnz $-8
# CHECK: andi. 0, 3, 32767 # encoding: [0x70,0x60,0x7f,0xff]
andi. %r0,%r3,~0x8000@l
# CHECK: andi. 0, 3, 0 # encoding: [0x70,0x60,0x00,0x00]
andi. %r0,%r3,!0x8000@l