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

Implement SHL/SHR for bitshifting #1796

merged 3 commits into from Jan 2, 2020


Copy link

@iamdefinitelyahuman iamdefinitelyahuman commented Jan 2, 2020

What I did

  • use SHL/SHR for bitshifting when targeting >=constantinople EVM ruleset - closes #1268
  • bitshift bytecode optimizations

How I did it

functions.functions.shift: When _shift is a literal, do not include IF SLT 0 or resulting unreachable bytecode.

How to verify it

Run the tests. I added some new test cases and parametrized existing ones.

Cute Animal Picture


@fubuloubu fubuloubu merged commit 4ac5ef5 into vyperlang:master Jan 2, 2020
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

2 participants