mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
Fix TableGen -gen-disassembler output for bit fields with an offset.
This fixes bit assignments like this Inst{7-0} = Foo{9-2} Patch by Steve King. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218560 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1051,7 +1051,11 @@ void FilterChooser::emitBinaryParser(raw_ostream &o, unsigned &Indentation,
|
||||
OperandInfo::const_iterator OI = OpInfo.begin();
|
||||
o.indent(Indentation) << "tmp = fieldFromInstruction"
|
||||
<< "(insn, " << OI->Base << ", " << OI->Width
|
||||
<< ");\n";
|
||||
<< ")";
|
||||
if (OI->Offset)
|
||||
o << " << " << OI->Offset;
|
||||
o << ";\n";
|
||||
|
||||
} else {
|
||||
o.indent(Indentation) << "tmp = 0;\n";
|
||||
for (OperandInfo::const_iterator OI = OpInfo.begin(), OE = OpInfo.end();
|
||||
|
Reference in New Issue
Block a user