ARM: permit upper-case BE/LE on setend instruction

Patch by Amaury de la Vieuville.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Tim Northover 2013-05-31 15:58:45 +00:00
parent 242c9f4615
commit ee5e24cb3e
2 changed files with 5 additions and 1 deletions

View File

@ -3624,7 +3624,7 @@ parseSetEndImm(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
Error(S, "'be' or 'le' operand expected");
return MatchOperand_ParseFail;
}
int Val = StringSwitch<int>(Tok.getString())
int Val = StringSwitch<int>(Tok.getString().lower())
.Case("be", 1)
.Case("le", 0)
.Default(-1);

View File

@ -1745,9 +1745,13 @@ Lforward:
@ SETEND
@------------------------------------------------------------------------------
setend be
setend BE
setend le
setend LE
@ CHECK: setend be @ encoding: [0x00,0x02,0x01,0xf1]
@ CHECK: setend be @ encoding: [0x00,0x02,0x01,0xf1]
@ CHECK: setend le @ encoding: [0x00,0x00,0x01,0xf1]
@ CHECK: setend le @ encoding: [0x00,0x00,0x01,0xf1]