movt

Operands

$reg, $reg, imm

Move if FP condition flag 0 is true : Copies $t2 into $t1 if floating-point condition flag 0 is true (1). Allows integer register updates to be conditioned on the result of a previous FP comparison (e.g., c.eq.s, c.lt.s).

Variants

  • Move if FP condition flag 0 is true : Copies $t2 into $t1 if floating-point condition flag 0 is true (1). Allows integer register updates to be conditioned on the result of a previous FP comparison (e.g., c.eq.s, c.lt.s). movt $t1,$t2
  • Move if specified FP condition flag is true : Copies $t2 into $t1 if FP condition flag N (specified by the third operand) is true (1). Allows results of multiple simultaneous FP comparisons to control integer register moves. movt $t1,$t2,1
.data
a: .float 1.0
b: .float 2.0
.text
# movt reads condition flag 0; set it true, then inspect $t2: 7 after the conditional copy.
l.s $f0, a
l.s $f2, b
c.lt.s $f0, $f2
li $t1, 7
li $t2, 0
movt $t2, $t1, 0