fix legalization of sext
improve float emitting