divuw

Divide the unsigned 32-bit values in xs1 and xs2, and store the sign-extended result in xd. The remainder is discarded. If the value in xs2 is zero, xd is written with all 1s.

Synopsis

divuw xd, xs1, xs2

Encoding

Type: R

0671112141519202425310111011xd101xs1xs20000001
funct7: 0000001
funct3: 101
opcode: 0111011

RISC-V Instruction Encoder/Decoder

open divuw in rvcodecjs

Availability