fsgnj.s

The `fsgnj.s` instruction produces a result that takes all bits except the sign bit from `fs1`. The result's sign bit is taken from `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

fsgnj.s fd, fs1, fs2

Encoding

Type:

0671112141519202425311010011fd000fs1fs20010000
funct7: 0010000
funct3: 000
opcode: 1010011

RISC-V Instruction Encoder/Decoder

open fsgnj.s in rvcodecjs

Availability