mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-22 05:23:00 +00:00
Support ICmp/FCmp constant expression reading and writing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32160 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -791,6 +791,13 @@ void BytecodeWriter::outputInstruction(const Instruction &I) {
|
||||
}
|
||||
}
|
||||
|
||||
// In the weird case of the ICmp or FCmp instructions, we need to also put
|
||||
// out the instruction's predicate value. We do that here, after the
|
||||
// instruction's type and operands have been written so we can reuse the
|
||||
// code above.
|
||||
if (const CmpInst* CI = dyn_cast<CmpInst>(&I))
|
||||
output_vbr((unsigned)CI->getPredicate());
|
||||
|
||||
// If we weren't handled before here, we either have a large number of
|
||||
// operands or a large operand index that we are referring to.
|
||||
outputInstructionFormat0(&I, Opcode, Table, Type);
|
||||
|
Reference in New Issue
Block a user