Skip to content

Incorrect FCVT.W.D Signed Integer Conversion for Negative Double-Precision Input #145

@Sufyan-Ahmed1

Description

@Sufyan-Ahmed1
  • Operand: 0xC1E0000000000000.
  • Instruction: fcvt.w.d
  • rounded_abs: 0xffffffff80000000 (correct signed integer result for the given input) (verified with Spike)
  • rounded_int_res: 0x0000000080000000
  • rounded_sign: 1 (straight from the input operand)

What is the purpose of this statement? if this is inverting the obtained answer...
assign rounded_int_res = rounded_sign ? unsigned'(-rounded_abs) : rounded_abs;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions