forked from OSchip/llvm-project
Allow exclamation and tilde to be parsed as a part of the ppc asm operand.
llvm-svn: 203699
This commit is contained in:
parent
bc82fe338e
commit
a26f9a6a42
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue