# `c.lt.s`

[MIPS Documentation](https://asm-editor.specy.app/documentation/mips.md) › [Instructions](https://asm-editor.specy.app/documentation/mips/instruction.md)

Web page: https://asm-editor.specy.app/documentation/mips/instruction/c.lt.s

**Compare less than (single precision)**

Category: Floating point

Sets FP condition flag 0 to true if the first register is less than the second; the signaling form acts like c.olt.s here.

Used in: [Floating point and Coprocessor 1](https://asm-editor.specy.app/learn/courses/mips/think-in-assembly/floating-point-and-coprocessor-1.md) (MIPS assembly)

## Forms

- `c.lt.s $f0, $f1`

- `c.lt.s cc, $f0, $f1` · Sets FP condition flag N, named by the first operand, to true if the first operand is less than the second, false otherwise. This is the signalling form, which behaves like 'c.olt' here because FP exceptions are not tracked. Use 'bc1t' or 'bc1f' to branch on the result.

## Operands

- `$f0`: Any floating-point register, `$f0` to `$f31`.
- `$f1`: A floating-point register. It may be the same register as `$f0`.
- `cc`: A floating-point condition flag number, `0` to `7`. Comparisons set these flags; `bc1t` and `bc1f` test them.

## Description

This is the signalling form, which behaves like 'c.olt' here because FP exceptions are not tracked. Use 'bc1t' or 'bc1f' to branch on the result.

## Example

```mips
.data
a: .float 1.25
b: .float 2.5
.text
# Compare 1.25 with 2.5. Inspect FPU condition flag 1: 1 for c.lt; this ordered comparison is true.
l.s $f0, a
l.s $f2, b
c.lt.s 1, $f0, $f2
```
