OSDN Git Service

Allow exclamation and tilde to be parsed as a part of the ppc asm operand.
authorRoman Divacky <rdivacky@freebsd.org>
Wed, 12 Mar 2014 19:25:57 +0000 (19:25 +0000)
committerRoman Divacky <rdivacky@freebsd.org>
Wed, 12 Mar 2014 19:25:57 +0000 (19:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203699 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
test/MC/PowerPC/ppc64-operands.s

index b76416c..21af037 100644 (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 */
index fc1cbeb..f914cfc 100644 (file)
 
 # 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
+