Code generator improvements for arm