Add meta definitions for floating point operations.

Rename the Select instruction format to Ternary since it is also used by the fma
instruction.
This commit is contained in:
Jakob Stoklund Olesen
2016-07-07 13:16:24 -07:00
parent 5d8fb0fdc3
commit 81ca406dd0
6 changed files with 183 additions and 64 deletions

View File

@@ -27,8 +27,9 @@ BinaryImmRev = InstructionFormat(imm64, value)
BinaryOverflow = InstructionFormat(value, value, multiple_results=True)
# The select instructions are controlled by the second value operand.
# The first value operand is the controlling flag whisch has a derived type.
Select = InstructionFormat(value, value, value, typevar_operand=1)
# The first value operand is the controlling flag which has a derived type.
# 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)