mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Insert dummy ED table entries for pseudo-instructions.
The table is indexed by opcode, so simply removing pseudo-instructions creates a wrong mapping from opcode to table entry. Add a test case for xorps which has a very high opcode that exposes this problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141562 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -802,14 +802,14 @@ static void populateInstInfo(CompoundConstantEmitter &infoArray,
|
||||
for (index = 0; index < numInstructions; ++index) {
|
||||
const CodeGenInstruction& inst = *numberedInstructions[index];
|
||||
|
||||
CompoundConstantEmitter *infoStruct = new CompoundConstantEmitter;
|
||||
infoArray.addEntry(infoStruct);
|
||||
|
||||
// We don't need to do anything for pseudo-instructions, as we'll never
|
||||
// see them here. We'll only see real instructions.
|
||||
if (inst.isPseudo)
|
||||
continue;
|
||||
|
||||
CompoundConstantEmitter *infoStruct = new CompoundConstantEmitter;
|
||||
infoArray.addEntry(infoStruct);
|
||||
|
||||
LiteralConstantEmitter *instType = new LiteralConstantEmitter;
|
||||
infoStruct->addEntry(instType);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user