divu

Divide unsigned values in xs1 by xs2, and store the result in xd. The remainder is discarded. If the value in xs2 is zero, xd gets the largest unsigned value.

Synopsis

divu xd, xs1, xs2

Encoding

Type: R

0671112141519202425310110011xd101xs1xs20000001
funct7: 0000001
funct3: 101
opcode: 0110011

RISC-V Instruction Encoder/Decoder

open divu in rvcodecjs

Availability