# `c.lt.d`

[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.d

**Compare less than (double 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.d here.

## Forms

- `c.lt.d $f2, $f4`

- `c.lt.d cc, $f2, $f4` · Sets FP condition flag N, named by the first operand, to true if the first operand is less than the second, false otherwise. Both register numbers must be even. 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

- `$f2`: An even-numbered floating-point register, `$f0` to `$f30`. A double-precision value uses this register and the next odd-numbered register.
- `$f4`: An even-numbered floating-point register holding a double. It may be the same register as `$f2`.
- `cc`: A floating-point condition flag number, `0` to `7`. Comparisons set these flags; `bc1t` and `bc1f` test them.

## Description

Both register numbers must be even. 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: .double 1.25
b: .double 2.5
.text
# Compare 1.25 with 2.5. Inspect FPU condition flag 1: 1 for c.lt; this ordered comparison is true.
l.d $f2, a
l.d $f4, b
c.lt.d 1, $f2, $f4
```
