Return


STOP

Original EVMarrow-up-right instruction.

This instruction is a RETURNarrow-up-right with an empty data payload.

LLVM IR

The same as for RETURNarrow-up-right.

The LLVM IR generator codearrow-up-right is common for Yul and EVMLA representations.

RETURN

Original EVMarrow-up-right instruction.

This instruction works differently in deploy code. For more information, see the ZKsync Era documentationarrow-up-right.

LLVM IR

define void @__return(i256 %0, i256 %1, i256 %2) "noinline-oz" #5 personality i32()* @__personality {
entry:
  %abi = call i256@__aux_pack_abi(i256 %0, i256 %1, i256 %2)
  tail call void @llvm.syncvm.return(i256 %abi)
  unreachable
}

The LLVM IR generator codearrow-up-right is common for Yul and EVMLA representations.

REVERT

Original EVMarrow-up-right instruction.

LLVM IR

The LLVM IR generator codearrow-up-right is common for Yul and EVMLA representations.

EraVM

See also EraVM instruction revert: when returning from near callsarrow-up-right and when returning from far callsarrow-up-right.

INVALID

Original EVMarrow-up-right instruction.

This instruction is a REVERTarrow-up-right with an empty data payload, but it also burns all the available gas.

LLVM IR

The same as for REVERTarrow-up-right.

The LLVM IR generator codearrow-up-right is common for Yul and EVMLA representations.

EraVM

See also EraVM instruction revert: when returning from near callsarrow-up-right and when returning from far callsarrow-up-right.

Last updated