Skip to content

Bug with fgt.s command #140

Description

@ShadowCreator250

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions