forked from OSchip/llvm-project
ARM: permit upper-case BE/LE on setend instruction
Patch by Amaury de la Vieuville. llvm-svn: 183012
This commit is contained in:
parent
4173e29a98
commit
4d14144024
|
@ -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);
|
||||
|
|
|
@ -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]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue