Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Refactor instructions to avoid specialization for {S} #79

Open
matanlurey opened this issue Feb 26, 2017 · 0 comments
Open

Refactor instructions to avoid specialization for {S} #79

matanlurey opened this issue Feb 26, 2017 · 0 comments

Comments

@matanlurey
Copy link
Owner

It looks like we could just have a bool get isSVariant field, and if true:

gprs.cpsr
  ..n = uint32.isNegative(result)
  ..z = isZero(gprs.get(rd))
  ..c = uint32.hasCarryBit(result)
  ..v = uint32.doesAddOverflow(op1, op2, result);

... versus re-creating this over and over.

WUD @kharland?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant