Test Bitwise¶
Documentation for tests/benchmark/compute/instruction/test_bitwise.py@8db70f93.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/benchmark/compute/instruction/test_bitwise.py --gas-benchmark-values 1
Benchmark bitwise instructions.
Supported Opcodes: - AND - OR - XOR - NOT - BYTE - SHL - SHR - SAR - CLZ
Test Functions Overview¶
| Name | Type | Cases (Amsterdam) | Description |
|---|---|---|---|
test_bitwise |
benchmark_test | 7 | Benchmark binary instructions (takes two args, pushes one value). |
test_clz_diff |
benchmark_test | 1 | Benchmark CLZ instruction with different input. |
test_clz_same |
benchmark_test | 1 | Benchmark CLZ instruction with same input. |
test_not_op |
benchmark_test | 1 | Benchmark NOT instruction (takes one arg, pushes one value). |
test_shifts |
benchmark_test | 2 | Benchmark shift instructions with non-trivial arguments. |