Calculate the remainder of signed division of the 32-bit values xs1 by xs2, and store the sign-extended result in xd. If the value in register xs2 is zero, write the sign-extended 32-bit value in xs1 into xd; If the result of the division overflows, write zero into xd;
remw xd, xs1, xs2
Type: R