mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 02:33:44 +00:00
fix rdar://7986634 - match instruction opcodes case insensitively.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104183 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a008750aa9
commit
a7f1354eb5
@ -783,8 +783,13 @@ bool AsmParser::ParseStatement() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Canonicalize the opcode to lower case.
|
||||||
|
SmallString<128> Opcode;
|
||||||
|
for (unsigned i = 0, e = IDVal.size(); i != e; ++i)
|
||||||
|
Opcode.push_back(tolower(IDVal[i]));
|
||||||
|
|
||||||
SmallVector<MCParsedAsmOperand*, 8> ParsedOperands;
|
SmallVector<MCParsedAsmOperand*, 8> ParsedOperands;
|
||||||
bool HadError = getTargetParser().ParseInstruction(IDVal, IDLoc,
|
bool HadError = getTargetParser().ParseInstruction(Opcode.str(), IDLoc,
|
||||||
ParsedOperands);
|
ParsedOperands);
|
||||||
if (!HadError && Lexer.isNot(AsmToken::EndOfStatement))
|
if (!HadError && Lexer.isNot(AsmToken::EndOfStatement))
|
||||||
HadError = TokError("unexpected token in argument list");
|
HadError = TokError("unexpected token in argument list");
|
||||||
|
@ -146,3 +146,8 @@ fadd %st(7)
|
|||||||
|
|
||||||
// CHECK: leal 0, %eax
|
// CHECK: leal 0, %eax
|
||||||
leal 0, %eax
|
leal 0, %eax
|
||||||
|
|
||||||
|
// rdar://7986634 - Insensitivity on opcodes.
|
||||||
|
// CHECK: int3
|
||||||
|
INT3
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user