c.un.s

Operands

[$freg / imm], $freg, $freg

FP compare un (single) : Sets FP condition flag 0 to true if the two operands are unordered, which is the case when either one is NaN, false otherwise. Use 'bc1t' or 'bc1f' to branch on the result.

Variants

  • FP compare un (single) : Sets FP condition flag 0 to true if the two operands are unordered, which is the case when either one is NaN, false otherwise. Use 'bc1t' or 'bc1f' to branch on the result. c.un.s $f0,$f1
  • FP compare un (single, flagged) : Sets FP condition flag N, named by the first operand, to true if the two operands are unordered, which is the case when either one is NaN, false otherwise. Use 'bc1t' or 'bc1f' to branch on the result. c.un.s 1,$f0,$f1
.data
a: .float 1.25
b: .float 2.5
.text
# Compare 1.25 with 2.5. Inspect FPU condition flag 1: 0 for c.un; this predicate is false for these ordered unequal operands.
l.s $f0, a
l.s $f2, b
c.un.s 1, $f0, $f2