neg.s

Floating-point negate (single precision)

Sets the first register to the negation of the single-precision value in the second, by flipping the sign bit.

Forms

  • neg.s ,

Operands

$f0
Any floating-point register, $f0 to $f31.
$f1
A floating-point register. It may be the same register as $f0.
.data
a: .float -1.5
.text
# Apply neg.s to an initialized value; inspect $f0: raw bits 0x3FC00000.
l.s $f1, a
neg.s $f0, $f1