fsgnjn.s

The `fsgnjn.s` instruction produces a result that takes all bits except the sign bit from `fs1`. The result's sign bit is opposite of `fs2`'s sign bit, and the result is written to the destination register `fd`. Sign-injection instructions do not set floating-point exception flags, nor do they canonicalize NaNs.

Synopsis

fsgnjn.s fd, fs1, fs2

Encoding

Type:

0671112141519202425311010011fd001fs1fs20010000
funct7: 0010000
funct3: 001
opcode: 1010011

RISC-V Instruction Encoder/Decoder

open fsgnjn.s in rvcodecjs

Availability