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

More HuCC updates. #52

Merged
merged 7 commits into from
Oct 19, 2024
Merged

More HuCC updates. #52

merged 7 commits into from
Oct 19, 2024

Conversation

jbrandwood
Copy link
Collaborator

No description provided.

…re generated

so that I_BOOLEAN doesn't have to preserve the C flag anymore.

This ensures that I_BFALSE and I_BTRUE are always preceeded by an I_TST_WR before
the peephole optimizer does its job, and it means that no workaround is needed if
the optimizer is disabled.

Also add the X_NOT_CF optimization to invert the carry flag for the case if a "!"
follows a conditional enclosed in parentheses.
… detection

of "LD variable; test;" into the same set of peephole rules as the other checks
and then expand the existing peephole rules to understand the list of optimized
i-codes that the "test variable" and "not variable" rules can generate.

Add another peephole rule and set of optimized i-codes for when the result of a
"!" needs to produce a boolean instead of a flag/jump, such as "var = !var".
…clared VOID

even though they do return a data value.
@jbrandwood jbrandwood merged commit ff0eff9 into pce-devel:master Oct 19, 2024
3 of 4 checks passed
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.

1 participant