c.ngl.s

Compare unordered or equal (single precision)

Sets FP condition flag 0 to true if $f0 equals $f1 or either is NaN; the signaling form acts like c.ueq.s here.

Forms

  • c.ngl.s ,
  • c.ngl.s , ,

    Sets FP condition flag N, named by the first operand, to true if the two operands are unordered or equal; the name reads as not greater than or less than, false otherwise. This is the signalling form, which behaves like 'c.ueq' 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.

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

.data
a: .float 1.25
b: .float 2.5
.text
# Compare 1.25 with 2.5. Inspect FPU condition flag 1: 0 for c.ngl; this predicate is false for these ordered unequal operands.
l.s $f0, a
l.s $f2, b
c.ngl.s 1, $f0, $f2