c.ngt.s
Compare not greater (single precision)
Sets FP condition flag 0 to true if either register is NaN or the first is less than or equal to the second; the signaling form acts like c.ule.s here.
Forms
c.ngt.s ,c.ngt.s , ,Sets FP condition flag N, named by the first operand, to true if the two operands are unordered, or the first is less than or equal to the second; the name reads as not greater than, false otherwise. This is the signalling form, which behaves like 'c.ule' here because FP exceptions are not tracked. Use 'bc1t' or 'bc1f' to branch on the result.
Operands
$f0- Any floating-point register,
$f0to$f31. $f1- A floating-point register. It may be the same register as
$f0. cc- A floating-point condition flag number,
0to7. Comparisons set these flags;bc1tandbc1ftest them.
This is the signalling form, which behaves like 'c.ule' 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: 1 for c.ngt; this ordered comparison is true.
l.s $f0, a
l.s $f2, b
c.ngt.s 1, $f0, $f2