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 2a2871e739
commit 29c449f117
6 changed files with 63 additions and 0 deletions

View File

@@ -823,6 +823,14 @@ Conversion operations
.. autoinst:: fcvt_from_uint
.. autoinst:: fcvt_from_sint
Legalization operations
-----------------------
These instructions are used as helpers when legalizing types and operations for
the target ISA.
.. autoinst:: isplit_lohi
.. autoinst:: iconcat_lohi
Base instruction group
======================