Convert single-precision to integer word : Converts the single-precision float in $f1 to a signed 32-bit integer by truncation and stores the result in $f0. Use 'mfc1' to move the integer result to a general-purpose register.
cvt.w.s
Operands
$freg, $fregVariants
- Convert single-precision to integer word : Converts the single-precision float in $f1 to a signed 32-bit integer by truncation and stores the result in $f0. Use 'mfc1' to move the integer result to a general-purpose register. cvt.w.s $f0,$f1
.data
number: .float 2.0
.text
# Convert 2.0 to a word using the current rounding mode. Inspect $f0: raw word 2.
l.s $f2, number
cvt.w.s $f0, $f2