Skip to content

Issue with calculating overflow flag(v) in nzcv #1

@MohGanji

Description

@MohGanji

Hi,
We faced an issue with your code in some special case when calculating overflow flag with your method.

Take any arbitrary positive number and 10000000000000000000000000000000. if these are the inputs of CMP or SUB commands, the overflow flag will be set to 0. However, it should be 1. This happens because neg of above number will equal itself, and cin and cout will both be zero.

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