fgt.d
Floating greater than (64 bit)
Sets the first register to 1 if the double-precision value in the second is greater than the value in the third, otherwise to 0.
Forms
Operands
t1- Any integer register,
x0tox31, or its named alias, such aszero,t0ort6. f2- Any floating-point register,
f0tof31, or its named alias, such asft0,fa0orft11. f3- A floating-point register. It may be the same register as
f2.
.data
a: .double 6.0
b: .double 2.0
.text
la t0, a
fld f1, 0(t0)
la t1, b
fld f2, 0(t1)
# Compare 6.0 with 2.0; fgt.d writes 1 to t2.
fgt.d t2, f1, f2