[tilegx] Adapt part of MIPS lithium implementation to TileGX.