mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-17 00:50:58 +00:00
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:
parent
242c9f4615
commit
ee5e24cb3e
@ -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
Block a user