openfimg: compiler: Add final pass of register assignment

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Fix dest mask calculation in disassembler

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Move RET and NOP instructions into SUB class

They don't have destination registers and so matches more closely
semantics of this class.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Dump format overhaul to improve readability

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Emit 3-source instructions correctly

Such instructions require a special bit to be set in instruction word of
their predecessors.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Use helper function to get register info

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Emit dst register type correctly

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
openfimg: compiler: Add condition register to if-then branch

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>