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

labels with same name as subcall causes incorrect identifier resolution #10

Open
dlech opened this issue Feb 6, 2020 · 1 comment
Open
Labels

Comments

@dlech
Copy link
Member

dlech commented Feb 6, 2020

I haven't found the source of the problem yet, but the attached file produces bad bytecodes for subcall ComparisonCore when compiled with the -ev3g flag.

ReplayG2 IfelseVM.zip

@dlech dlech added the bug label Feb 6, 2020
@dlech
Copy link
Member Author

dlech commented Mar 13, 2020

Further inspection shows that this bug is not related to OptimizeLabels, but rather there is a label with the same name as a subcall.

The identifier greaterThan is resolved as a subcall instead of label when it is used in JR_EQ32 in ComparisonCore.

@dlech dlech changed the title OptimizeLabels is buggy labels with same name as subcall causes incorrect identifier resolution Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant