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

Allow signed immediates to be matched by IsIMMX functions #182

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

kalamay
Copy link
Contributor

@kalamay kalamay commented Apr 16, 2021

This has been such a great library for us! But we've been working around an issue concerning immediates that this PR should address. Many of the instruction functions correctly match the size of immediate values, but they only accept unsigned immediates. For example:

r := GP64()
ANDQ(I8(-32), r)   // ANDQ: bad operands

While the imm8 input is checked as expected, the operand.IsIMM8() function is causing this check to incorrectly fail.

I believe this PR should address issue #181

@mmcloughlin mmcloughlin merged commit 4592e16 into mmcloughlin:master Apr 16, 2021
@mmcloughlin
Copy link
Owner

Great! Thanks for the contribution!

What are you using avo for? Would it be suitable to add to the third-party test suite?

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

Successfully merging this pull request may close these issues.

2 participants