Skip to content

Conversation

@spencer-tb
Copy link
Contributor

Description

Adds the CLZ (count leading zeros opcode) for EIP-7939.

Cute Animal Picture

1269071-cute-pig-wallpapers-1920x1200-for-mac-3717821457

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 25.00000% with 6 lines in your changes missing coverage. Please review.

Please upload report for BASE (devnets/osaka/2@b6d35cc). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/ethereum/osaka/vm/instructions/bitwise.py 14.28% 6 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##             devnets/osaka/2    #1275   +/-   ##
==================================================
  Coverage                   ?   92.97%           
==================================================
  Files                      ?      582           
  Lines                      ?    33722           
  Branches                   ?     3066           
==================================================
  Hits                       ?    31353           
  Misses                     ?     1839           
  Partials                   ?      530           
Flag Coverage Δ
unittests 92.97% <25.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gurukamath gurukamath merged commit eee585e into ethereum:devnets/osaka/2 Jun 24, 2025
4 of 5 checks passed
x = pop(evm.stack)

# GAS
charge_gas(evm, GAS_VERY_LOW)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit: we want to charge gas before doing any operations. So the gas should be charged before the pop. If there is not enough gas available, then we thus also do not perform the pop logic where there are insufficient funds for 😄 👍

SamWilsn pushed a commit that referenced this pull request Jun 26, 2025
* feat(vm): add eip-7939 count leading zeros opcode.

* Update src/ethereum/osaka/vm/instructions/bitwise.py

Co-authored-by: Guruprasad Kamath <[email protected]>

* code formatting

---------

Co-authored-by: Guruprasad Kamath <[email protected]>
Co-authored-by: Guruprasad Kamath <[email protected]>
spencer-tb added a commit to spencer-tb/execution-specs that referenced this pull request Jul 18, 2025
* feat(vm): add eip-7939 count leading zeros opcode.

* Update src/ethereum/osaka/vm/instructions/bitwise.py

Co-authored-by: Guruprasad Kamath <[email protected]>

* code formatting

---------

Co-authored-by: Guruprasad Kamath <[email protected]>
Co-authored-by: Guruprasad Kamath <[email protected]>
Carsons-Eels pushed a commit to Carsons-Eels/execution-specs that referenced this pull request Jul 22, 2025
* feat(vm): add eip-7939 count leading zeros opcode.

* Update src/ethereum/osaka/vm/instructions/bitwise.py

Co-authored-by: Guruprasad Kamath <[email protected]>

* code formatting

---------

Co-authored-by: Guruprasad Kamath <[email protected]>
Co-authored-by: Guruprasad Kamath <[email protected]>
SamWilsn pushed a commit to SamWilsn/eth1.0-specs that referenced this pull request Jul 25, 2025
* feat(vm): add eip-7939 count leading zeros opcode.

* Update src/ethereum/osaka/vm/instructions/bitwise.py

Co-authored-by: Guruprasad Kamath <[email protected]>

* code formatting

---------

Co-authored-by: Guruprasad Kamath <[email protected]>
Co-authored-by: Guruprasad Kamath <[email protected]>
nerolation pushed a commit to nerolation/execution-specs that referenced this pull request Aug 1, 2025
* feat(vm): add eip-7939 count leading zeros opcode.

* Update src/ethereum/osaka/vm/instructions/bitwise.py

Co-authored-by: Guruprasad Kamath <[email protected]>

* code formatting

---------

Co-authored-by: Guruprasad Kamath <[email protected]>
Co-authored-by: Guruprasad Kamath <[email protected]>
Carsons-Eels pushed a commit to Carsons-Eels/execution-specs that referenced this pull request Oct 16, 2025
danceratopz pushed a commit to danceratopz/execution-specs that referenced this pull request Oct 22, 2025
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.

4 participants