feq.s

The `feq.s` instruction writes 1 to `xd` if `fs1` and `fs2` are equal, and 0 otherwise. If either operand is NaN, the result is 0 (not equal). If either operand is a signaling NaN, the invalid flag is set. Positive zero is considered equal to negative zero.

Synopsis

feq.s xd, fs1, fs2

Encoding

Type:

0671112141519202425311010011xd010fs1fs21010000
funct7: 1010000
funct3: 010
opcode: 1010011

RISC-V Instruction Encoder/Decoder

open feq.s in rvcodecjs

Availability