flt.s
Floating less than
Sets the first register to 1 if the single-precision value in the second is less than the value in the third, otherwise to 0.
Used in
- Floating point and the F and D extensionsRISC-V assembly
Forms
flt.s , ,
Operands
t1- Any integer register,
x0tox31, or its named alias, such aszero,t0ort6. f1- Any floating-point register,
f0tof31, or its named alias, such asft0,fa0orft11. f2- A floating-point register. It may be the same register as
f1.
.data
a: .float 6.0
b: .float 2.0
.text
la t0, a
flw f1, 0(t0)
la t1, b
flw f2, 0(t1)
# Compare 6.0 with 2.0; flt.s writes 0 to t2.
flt.s t2, f1, f2