-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Labels
fork:osakaOsaka hardforkOsaka hardforkscope:testsScope: Changes EL client test cases in `./tests`Scope: Changes EL client test cases in `./tests`type:feattype: Featuretype: Feature
Description
Extra Test Cases EIP-7939
Count leading zeros (CLZ) opcode
Initcode Context
- From
CODECOPY
/EXTCODECOPY
- feat(tests): add codecopy and extcodecopy for clz opcode #1858 - Contract creation transaction - feat(tests): add initcode context extra test for clz opcode #1831
- Contract creation via
CREATE
&CREATE2
- feat(tests): add initcode context extra test for clz opcode #1831
Execution Context
-
CALL
,STATICCALL
,DELEGATECALL
,CALLCODE
- feat(tests): add call operation test case for CLZ #1829 - setCode transaction (eip-7702) - feat(tests): add eip7702 test case for clz opcode #1853
Gas Cost
- Not enough gas - feat(tests): add test for CLZ opcode with varying gas costs #1859
- Exact gas cost (3 unit) - Implementation
- Extra gas - feat(tests): add test for CLZ opcode with varying gas costs #1859
- Short by N, N = 3 - feat(tests): add test for CLZ opcode with varying gas costs #1859
Benchmark
- ZK- proving time - feat(benchmark): add clz opcode test case #1845
- Execution time for client - feat(benchmark): add clz opcode test case #1845
New Opcode
- Fork transition test - Implementation
- Execution succeed on Osaka but fail on Prague - Implementation
0x1e Opcode
- jump / jumpi into opcode should fail - feat(tests): add jump operation test case for CLZ #1824
- jump / jumpi into the jumpdest in front of the bytecode should work - feat(tests): add jump operation test case for CLZ #1824
- Implement by the wrong byte
Stack Operation
- PUSH1-32 with same value should have same result - feat(tests): extra stack operation test for CLZ opcode #1821
- Overflows is impossible - feat(tests): extra stack operation test for CLZ opcode #1821
- Underflow cases - Implementation
Value Boundary
- Input range from 0 - 2^256 - 1
- Output range from 0 to 256
- Other case: 2^8, 2^16, 2^32, …
- 1 << N, N = 1…256 -> Implementation
- Trailing zero cases
Please comment any additional test cases or edit the issue and add more.
Metadata
Metadata
Assignees
Labels
fork:osakaOsaka hardforkOsaka hardforkscope:testsScope: Changes EL client test cases in `./tests`Scope: Changes EL client test cases in `./tests`type:feattype: Featuretype: Feature