This can be enforced by pre-commit, but correct it separately to make it easier to review.
Only IPSR and BASEPRI special registers supported at the moment, but easy to extend in the future.