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

vm: handle negative arguments in SHL/SHR #827

Merged
merged 1 commit into from
Apr 6, 2020
Merged

vm: handle negative arguments in SHL/SHR #827

merged 1 commit into from
Apr 6, 2020

Conversation

fyrchik
Copy link
Contributor

@fyrchik fyrchik commented Apr 6, 2020

Do it as in reference implementation: a >> -b == a << b.

https://dotnetfiddle.net/bCzPFI

@codecov
Copy link

codecov bot commented Apr 6, 2020

Codecov Report

Merging #827 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #827      +/-   ##
==========================================
+ Coverage   67.67%   67.68%   +0.01%     
==========================================
  Files         141      141              
  Lines       13168    13175       +7     
==========================================
+ Hits         8911     8918       +7     
  Misses       3849     3849              
  Partials      408      408              
Impacted Files Coverage Δ
pkg/vm/vm.go 78.14% <100.00%> (+0.15%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 83a02f4...9680626. Read the comment docs.

Do it as in reference implementation: a >> -b == a << b.
@roman-khimov roman-khimov merged commit b2c767e into master Apr 6, 2020
@roman-khimov roman-khimov deleted the fix/shl branch April 6, 2020 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vm VM tasks/bugs/issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants