From: Roman Divacky Date: Wed, 12 Mar 2014 19:25:57 +0000 (+0000) Subject: Allow exclamation and tilde to be parsed as a part of the ppc asm operand. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=060c0eb1d2e892e0a08e66c971c36568563cb202;p=oota-llvm.git 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 --- diff --git a/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp b/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp index b76416c6334..21af0374a07 100644 --- a/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp +++ b/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp @@ -1205,6 +1205,8 @@ ParseOperand(SmallVectorImpl &Operands) { case AsmToken::Integer: case AsmToken::Dot: case AsmToken::Dollar: + case AsmToken::Exclaim: + case AsmToken::Tilde: if (!ParseExpression(EVal)) break; /* fall through */ diff --git a/test/MC/PowerPC/ppc64-operands.s b/test/MC/PowerPC/ppc64-operands.s index fc1cbeb94b9..f914cfcf2b0 100644 --- a/test/MC/PowerPC/ppc64-operands.s +++ b/test/MC/PowerPC/ppc64-operands.s @@ -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 +