Open TharshanThana opened 6 years ago
Can the remainder be negative?
Yes, see this test: https://github.com/riscv/riscv-tests/blob/master/isa/rv32um/rem.S
Like the C99 modulus operator, REM takes the sign of the dividend when the signs of the divisor and dividend differ.
Can the remainder be negative?