This pulls out code for encoding and decoding 8-bit floating-point immedate values into helper functions that can be re-used for future instructions with similar operands.
Issues: #4393, #2626