# `flt.s`

[RISC-V Documentation](https://asm-editor.specy.app/documentation/risc-v.md) › [Instructions](https://asm-editor.specy.app/documentation/risc-v/instruction.md)

Web page: https://asm-editor.specy.app/documentation/risc-v/instruction/flt.s

**Floating less than**

Category: Floating point

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.

[RISC-V manual: flt.s](https://docs.riscv.org/reference/isa/v20260120/unpriv/f-st-ext.html#norm:feq-s_flt-s_fle-s_op)

Used in: [Floating point and the F and D extensions](https://asm-editor.specy.app/learn/courses/risc-v/think-in-assembly/floating-point-and-the-f-and-d-extensions.md) (RISC-V assembly)

## Forms

- `flt.s t1, f1, f2`

## Operands

- `t1`: Any integer register, `x0` to `x31`, or its named alias, such as `zero`, `t0` or `t6`.
- `f1`: Any floating-point register, `f0` to `f31`, or its named alias, such as `ft0`, `fa0` or `ft11`.
- `f2`: A floating-point register. It may be the same register as `f1`.

## Example

```riscv
.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
```
