Skip to content

Floating-Point Conversion ( fcvt.d.s) #90

@ProfPierce

Description

@ProfPierce

Error message on the following instruction: fcvt.d.s ft2, ft1, dyn

Error in test.asm line 31 column 12: "ft2": operand is of incorrect type

The help documentation states the following: fcvt.d.s t1, f1, dyn Convert a float to a double: Assigned the value of f2 to f1
(note register t1 is referenced in the format but f2 is stated in the description.)

Specification description: "The double-precision to single-precision and single-precision to double-precision conversion instructions, FCVT.S.D and FCVT.D.S, are encoded in the OP-FP major opcode space and both the source and destination are floating-point registers."

It seems the implementation of the instruction in RARS is attempting a floating to integer conversion where it should be a floating precision conversion from single-precision to double-precision.

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