Fix warning issues in LoadlW and scratch reg check