Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-implement CMP instructions with immediate destination #6

Open
madhusudancs opened this issue Jun 2, 2012 · 0 comments
Open

Re-implement CMP instructions with immediate destination #6

madhusudancs opened this issue Jun 2, 2012 · 0 comments
Assignees

Comments

@madhusudancs
Copy link
Owner

In x86 all the destinations are generally either registers or memory locations (In very few cases only registers are allowed). In some cases, CMP instruction gets an immediate operand. Currently a move instruction (move to a temporary scratch register %r15) is inserted in this case. However we can do much better if we can swap the operands. But that also means that we need to complement the following branch instruction. This should be implemented.

@ghost ghost assigned madhusudancs Jun 2, 2012
madhusudancs added a commit that referenced this issue Jun 3, 2012
…d is immediate.

This needs to be fixed. See issue #6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant