Floor single-precision to word : Converts the single-precision float in $f1 to a 32-bit integer by rounding toward negative infinity (i.e., always truncates toward -inf), and stores the result in $f0. Use 'mfc1' to move the result to a general-purpose register.
floor.w.s
Operands
$freg, $fregVariants
- Floor single-precision to word : Converts the single-precision float in $f1 to a 32-bit integer by rounding toward negative infinity (i.e., always truncates toward -inf), and stores the result in $f0. Use 'mfc1' to move the result to a general-purpose register. floor.w.s $f0,$f1
.data
a: .float -1.5
.text
# Apply floor.w.s to an initialized value; inspect $f0: raw bits 0xFFFFFFFE.
l.s $f1, a
floor.w.s $f0, $f1