fsgnjx.s

Operands

freg, freg, freg

Floating point sign injection (xor): xor the sign bit of f2 with the sign bit of f3 and assign it to f1

Variants

  • Floating point sign injection (xor): xor the sign bit of f2 with the sign bit of f3 and assign it to f1 fsgnjx.s f1, f2, f3
.data
a: .float 6.0
b: .float 2.0
.text
la t0, a
flw f1, 0(t0)
la t1, b
flw f2, 0(t1)
# Copy magnitude 6.0 and combine its sign with -2.0; f3 (ft3) becomes -6.0.
fneg.s f2, f2
fsgnjx.s f3, f1, f2