Fixed build and expand sign extension in registers