Add legalization helper instructions.

The isplit_lohi instruction breaks an integer into two halves. This will
typically be used to get the two halves of an `i64` value on 32-bit
CPUs.

The iconcat_lohi is the reverse operation. It reconstructs the `i64`
from the low and high bits.
This commit is contained in:
Jakob Stoklund Olesen
2016-09-27 16:22:32 -07:00
parent 2a4aaa3da1
commit 4db11d1ae7
6 changed files with 63 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ UnaryImm = InstructionFormat(imm64)
UnaryIeee32 = InstructionFormat(ieee32)
UnaryIeee64 = InstructionFormat(ieee64)
UnaryImmVector = InstructionFormat(immvector)
UnarySplit = InstructionFormat(value, multiple_results=True)
Binary = InstructionFormat(value, value)
BinaryImm = InstructionFormat(value, imm64)