Create format fields for immediate operands.
Each InstructionFormat instance gets data members corresponding to its immediate operands, so the can be referred to as BinaryImm.imm, for example. This will be used to construct instruction predicates.
This commit is contained in:
@@ -30,8 +30,8 @@ BinaryOverflow = InstructionFormat(value, value, multiple_results=True)
|
||||
# The fma instruction has the same constraint on all inputs.
|
||||
Ternary = InstructionFormat(value, value, value, typevar_operand=1)
|
||||
|
||||
InsertLane = InstructionFormat(value, uimm8, value)
|
||||
ExtractLane = InstructionFormat(value, uimm8)
|
||||
InsertLane = InstructionFormat(value, ('lane', uimm8), value)
|
||||
ExtractLane = InstructionFormat(value, ('lane', uimm8))
|
||||
|
||||
IntCompare = InstructionFormat(intcc, value, value)
|
||||
FloatCompare = InstructionFormat(floatcc, value, value)
|
||||
|
||||
Reference in New Issue
Block a user