Use the SIGN_EXTENSION macro where possible

This shortens the x86 assembly by 134 lines in total.