mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 12:08:33 +00:00
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:
parent
b2ff2c7efa
commit
060c0eb1d2
@ -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
Block a user