如何比较 MIPS 中的双精度值?

How to compare a double value in MIPS?

我有一个以此结尾的循环

bne $f2, $zero, loop

如果 $f2 等于零,它应该 return 到循环的开头,但我收到这个错误。

"$f2": 操作数类型不正确

如何将双精度值与零进行比较?

你必须使用像

这样的东西
li.d $f0, 0        # store the value 0 in register $f0
c.ne.d $f0, $f2    # $f0 != $f2?
bc1t loop          # if true, branch to the label called "loop"