EIP-8442 EVM 64-bit dedicated opcodes (64-bit Opcodes for the EVM)
No call decision · EVM & execution · EIP status Draft · created 2026-10-14
Adds 28 new 64-bit dedicated operations to the EVM at new addresses, allowing computations that do not need the full 256 bits to be processed at lower gas cost.
Why it is needed
The EVM processes all computation in 256-bit units. But values actually used in practice, such as counters, array lengths, or loop indices, mostly fit within 64 bits. Even a single 64-bit addition done with a 256-bit register must be split into four limbs added separately with three carry operations. When running on an interpreter, this difference is small since it is dwarfed by instruction dispatch cost, but when compiled to native code or executed in a zero-knowledge (ZK) prover, this waste shows up directly as cost and proving time. This EIP proposes charging only as much as 64 bits requires for computations where 64 bits suffice.
What changes
Today
- Because every operation is processed in 256-bit units, even computations on small values incur a large cost
- Even a 64-bit addition requires four limbs and three carry operations
- Compiled code and ZK provers bear this waste directly as execution time and proving cost
After EIP-8442
- 28 new 64-bit dedicated operations are added at addresses offset by 0xC0 from the existing opcodes
- The operation result comes out as a 256-bit value where only the lower 64 bits are computed and the upper 192 bits are filled with zero
- 64-bit operations receive a gas tier one level lower than their 256-bit counterpart
- They can be freely mixed with existing 256-bit instructions without any separate mode switch
Who is affected
- Ordinary users: Gas costs may decrease for transactions or layer 2s where these operations make up a large share
- Smart contract and compiler developers: This instruction is safe to use only when it can be proven that the value fits within 64 bits
- Client implementation teams: 28 new opcodes and 4 new gas tiers must be additionally implemented and tested
- Layer 2s / EVM-compatible chains: The lower the overhead environment, the greater the effect, giving a stronger incentive to adopt it
In depth
28 new opcodes and their address assignment rule
The new opcodes are placed at the position of the corresponding existing opcode value plus 0xC0. The arithmetic group is ADD64, MUL64, SUB64, DIV64, SDIV64, MOD64, SMOD64, ADDMOD64, MULMOD64, EXP64, and SIGNEXTEND64; the memory and calldata group is CALLDATALOAD64, MLOAD64, and MSTORE64; the comparison and bitwise group is LT64, GT64, SLT64, SGT64, EQ64, ISZERO64, AND64, OR64, XOR64, NOT64, SHL64, SHR64, SAR64, and CLZ64. The four slots 0xC0, 0xCF, 0xDA, and 0xDF are left empty. None of the instructions take immediate data, and each has a fixed number of stack inputs and outputs, so JUMPDEST analysis is unaffected.
A method that reads only the lower 64 bits and returns a zero-padded result
Each instruction reads only the lower 64 bits of its operands, that is, the remainder modulo 2^64. The result extends the 64-bit computation back to 256 bits, with the upper 192 bits always zero. Signed operations such as SDIV64 and SMOD64 interpret the lower 64 bits as two's complement. There is no concept of turning a mode on or off, so these instructions can be inserted anywhere among the existing 256-bit instructions. Implementations are also allowed to keep the 64-bit value in a single machine word and only zero-fill the upper bits when a 256-bit instruction reads it.
Four new gas tiers
verylow64 is 2, one tier below the existing verylow (3); low64 is 3, below low (5); and mid64 is 5, below mid (8). EXP64 costs 5 plus 25 per byte of the exponent, and since the exponent is b modulo 2^64, at most 8 bytes are counted, making it cheaper than the existing EXP's 10 plus 50 per byte. MLOAD64 and MSTORE64 pay the same memory expansion cost as MLOAD and MSTORE. This discount reflects the fact that a 256-bit operation splits into four chunks to handle carries, whereas a 64-bit operation completes in a single machine word; the source notes that the actual balance needs to be determined through benchmarking.
Memory and calldata access use the same 32-byte window as before
MLOAD64, MSTORE64, and CALLDATALOAD64 use the same offset, the same 32-byte window, and the same memory expansion rule as their twin instructions, reading or writing only the lower 8 bytes of that window. This lets MLOAD64 read back a 64-bit value that was stored with MSTORE, and lets CALLDATALOAD64 read an ABI-encoded 64-bit argument in place. MSTORE64 writes the full 32 bytes, zero-filling the upper 24 bytes. A tighter scheme writing memory in 8-byte units was also considered, but that would make it the first non-word-sized memory access, requiring a separate expansion rule and conflicting with the existing calldata layout, so it was dropped from this proposal.
Instructions that were not given a twin
No 64-bit twins were created for JUMP and JUMPI. A jump destination already fits within 64 bits, and JUMPI only checks whether a value is zero, so a zero-padded 256-bit value gives the same answer; a twin would only save gas. PUSH does not need a twin either, since pushing up to 8 bytes already produces a 64-bit value with zeroed upper bits. DUP, SWAP, and POP move an entire word, so there is nothing to narrow. BYTE was also not given a twin, since in a big-endian word the j-th byte of a 64-bit value can already be obtained with BYTE(24+j), so a twin would save only 1 unit of gas.
Performance measurement results
Running five kernel types (multiplication chain, call tree, xorshift, Euclidean algorithm, and store-and-sum) with the EIP-7979 measurement tooling showed that these 64-bit instructions alone cut instruction counts by 1.1x to 1.5x under interpreted execution, and by 2.8x to 11x when compiled to RISC-V. Combined with static control-flow validation, the compiled code executes 19x to 51x fewer RISC-V instructions than the EVM running on today's interpreters. Results from running on the Zisk zkVM show that the ZK prover's cost also shrinks in proportion to the instruction count, with this ratio matching the ratio of proving costs. However, these kernels do not represent ordinary transactions where storage access dominates cost, and the source notes the effect is larger in low-overhead environments such as precompiles or layer 2s.
Backwards compatibility
The range 0xC0 through 0xDF is currently unassigned, so executing these values today halts with an exception and consumes all gas. In other words, any existing code that used these addresses was already broken, so turning 28 of these addresses into real operations does not change the behavior of existing contracts. No existing opcode changes, and since the new instructions take no immediate data, JUMPDEST analysis is unaffected. The source states that this change does not block running the EVM in zero-knowledge environments, nor does it preclude other changes such as EOF or RISC-V.
Current Status and Remaining Work
This EIP is currently in Draft status, and whether it will be included in a fork has not yet been discussed on core developer calls. The source states that setting the gas tier one level below the twin instruction is only an approximation, and the exact cost must be determined through benchmarking. The specification, implementation, and tests are public, but the figures are still subject to change.