movt.s

Operands

$freg, $freg, imm

Move single-precision FP if condition flag 0 is true : Copies the single-precision value in $f1 into $f0 if FP condition flag 0 is true (1).

Variants

  • Move single-precision FP if condition flag 0 is true : Copies the single-precision value in $f1 into $f0 if FP condition flag 0 is true (1). movt.s $f0,$f1
  • Move single-precision FP if specified condition flag is true : Copies the single-precision value in $f1 into $f0 if FP condition flag N (specified by the immediate) is true (1). movt.s $f0,$f1,1
.data
a: .float 1.0
b: .float 2.0
value: .float 2.0
.text
# movt.s copies only when condition flag 0 is true. Inspect $f6 receives 2.0 (raw bits 0x40000000).
l.s $f0, a
l.s $f2, b
c.lt.s $f0, $f2
l.s $f2, value
movt.s $f6, $f2, 0