Skip to content

Pseudoinstructions sgt and sgtu not recognised #51

@fer-amdias

Description

@fer-amdias

When running a piece of code such as:

li t0, 1
li t1, 2
sgt t0, t1, t0

RARS will run it just fine, yet FPGRARS will complain:

[error]: Unknown instruction 'sgt'
   --> test.asm at line 3, column 2
 2  | li t1, 2
 3  | sgt t0, t1, t
......^ Here

The same will happen for its unsigned counterpart, sgtu.

li t0, 1
li t1, 2
sgtu t0, t1, t0
   [error]: Unknown instruction 'sgtu'
   --> fpgrars_test.asm at line 3, column 2
 2  | li t1, 2
 3  | sgtu t0, t1, t
......^ Here

Strangely, this does not happen with stgz. The code runs just fine.

li t1, 2
sgtz t0, t1
Finished in 0ms

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