Skip to content

Add support for condition codes #4

@pveentjer

Description

@pveentjer

An instruction like ADD can be combined with a condition code like EQ (equals).

E.g.

   CMP r1,r2
   ADDNE r3,r1,r2

So only add r1,r2 if r1!=r2.

When the condition holds, it is easy to process this operation. The problem is when the condition doesn't hold because you still need to update the r3 register so that register renaming doesn't break. This means that the ADDNE has a read dependency on the previous value of r3.

This should be easy to add since the DataProcessing has a rd_read flag that ensures that the destination register is read.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions