slt

Places the value 1 in register `xd` if register `xs1` is less than the value in register `xs2`, where both sources are treated as signed numbers, else 0 is written to `xd`.

Synopsis

slt xd, xs1, xs2

Encoding

Type: R

0671112141519202425310110011xd010xs1xs20000000
funct7: 0000000
funct3: 010
opcode: 0110011

RISC-V Instruction Encoder/Decoder

open slt in rvcodecjs

Availability