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

visit ARM::CMP #17

Open
skintigh opened this issue Mar 17, 2014 · 0 comments
Open

visit ARM::CMP #17

skintigh opened this issue Mar 17, 2014 · 0 comments

Comments

@skintigh
Copy link

The compare type isn't determined by the cmp instruction in ARM, so need to peek at the user(s) of the function before doing anything.
This is going to cause havoc in weird code like:

cmp x, y
ldrne ...
ldrgt ...
ldrlt ...

We need some sort of global state where the last cmp instruction gets pointed to.
We also have to figure out how to handle CopyToReg?'s into the %CPSR register when this happens.

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

No branches or pull requests

1 participant