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

no-op not inserted after label at end of loop #27

Open
Shylie opened this issue Apr 8, 2023 · 1 comment
Open

no-op not inserted after label at end of loop #27

Shylie opened this issue Apr 8, 2023 · 1 comment

Comments

@Shylie
Copy link

Shylie commented Apr 8, 2023

As an example,

.consti loopParams(3, 0, 1, 0)
.setb b0 true

.proc main
    for loopParams
        jmpu b0, label
        label:
    .end
.end

does not have a no-op inserted after label to prevent unintended early exits.

@fincs
Copy link
Member

fincs commented Apr 13, 2023

If you can, submitting a PR that fixes this would be very much appreciated.

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

2 participants