cvt.s.d
Convert double-precision to single-precision
Converts the double-precision float in the second register to single-precision and stores the result in the first.
Forms
cvt.s.d ,
Operands
$f1- Any floating-point register,
$f0to$f31. $f2- An even-numbered floating-point register,
$f0to$f30. A double-precision value uses this register and the next odd-numbered register.
$f2 must be even-numbered. Precision may be lost since single has fewer significant digits.
.data
value: .double -1.5
.text
# Convert double -1.5 to single. Inspect $f0: -1.5 (raw bits 0xBFC00000).
l.d $f2, value
cvt.s.d $f0, $f2