Skip to content

Implement SHL/SHR for bitshifting#1796

Merged
fubuloubu merged 3 commits into
vyperlang:masterfrom
iamdefinitelyahuman:bitwise-ops
Jan 2, 2020
Merged

Implement SHL/SHR for bitshifting#1796
fubuloubu merged 3 commits into
vyperlang:masterfrom
iamdefinitelyahuman:bitwise-ops

Conversation

@iamdefinitelyahuman

Copy link
Copy Markdown
Contributor

What I did

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

image

@fubuloubu fubuloubu merged commit 4ac5ef5 into vyperlang:master Jan 2, 2020
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.

Reimplement shift using constantinople opcodes

2 participants