I have RARS 1.5 (rars_46ab74d.jar) installed and ran into an issue when comparing 2 floats with the fgt.s t0, f1, f2 command.
I would expect that the command checks if f1 > f2 but it appears to check if f1 < f2.
Here is a little program to reproduce this:
.data
float1: .float 3.5001
float2: .float 3.5089
.text
flw ft0, float1, t0
flw ft1, float2, t0
flt.s t0, ft0, ft1 # check if flaot1 < flaot2. returns 1 (true)
flw ft0, float1, t1
flw ft1, float2, t1
fgt.s t1, ft0, ft1 # check if flaot1 > flaot2. Should return 0 (false) but returns 1 (true)
#exit program
li a7, 10
ecall
Let me know if you need anything else from me.
I have RARS 1.5 (
rars_46ab74d.jar) installed and ran into an issue when comparing 2 floats with thefgt.s t0, f1, f2command.I would expect that the command checks if
f1 > f2but it appears to check iff1 < f2.Here is a little program to reproduce this:
Let me know if you need anything else from me.