fsgnjx.s

The `fsgnjx.s` instruction produces a result that takes all bits except the sign bit from `fs1`. The result's sign bit is the XOR of sign bits of `fs1` and `fs2`, 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

fsgnjx.s fd, fs1, fs2

Encoding

Type:

0671112141519202425311010011fd010fs1fs20010000
funct7: 0010000
funct3: 010
opcode: 1010011

RISC-V Instruction Encoder/Decoder

open fsgnjx.s in rvcodecjs

Availability