> For the complete documentation index, see [llms.txt](https://validium.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://validium.gitbook.io/docs/components/compiler/specification/instructions/evm/stack.md).

# Stack

***

### POP <a href="#pop" id="pop"></a>

Original [EVM](https://www.evm.codes/#50?fork=shanghai) instruction.

In Yul, only used to mark unused values, and is not translated to LLVM IR.

```llvm
pop(staticcall(gas(), address(), 0, 64, 0, 32))
```

For EVMLA, see [EVM Legacy Assembly Translator](https://docs.zksync.io/zk-stack/components/compiler/specification/evmla-translator).

[The LLVM IR generator code](https://github.com/matter-labs/era-compiler-solidity/blob/main/src/evmla/assembly/instruction/stack.rs#L108).

### JUMPDEST <a href="#jumpdest" id="jumpdest"></a>

Original [EVM](https://www.evm.codes/#5b?fork=shanghai) instruction.

Is not available in Yul.

Ignored in EVMLA. See [EVM Legacy Assembly Translator](https://docs.zksync.io/zk-stack/components/compiler/specification/evmla-translator) for more information.

### PUSH - PUSH32 <a href="#push-push32" id="push-push32"></a>

Original [EVM](https://www.evm.codes/#5f?fork=shanghai) instructions.

Is not available in Yul.

For EVMLA, see [EVM Legacy Assembly Translator](https://docs.zksync.io/zk-stack/components/compiler/specification/evmla-translator).

[The LLVM IR generator code](https://github.com/matter-labs/era-compiler-solidity/blob/main/src/evmla/assembly/instruction/stack.rs#L10).

### DUP1 - DUP16 <a href="#dup1-dup16" id="dup1-dup16"></a>

Original [EVM](https://www.evm.codes/#80?fork=shanghai) instructions.

Is not available in Yul.

For EVMLA, see [EVM Legacy Assembly Translator](https://docs.zksync.io/zk-stack/components/compiler/specification/evmla-translator).

[The LLVM IR generator code](https://github.com/matter-labs/era-compiler-solidity/blob/main/src/evmla/assembly/instruction/stack.rs#L48).

### SWAP1 - SWAP16 <a href="#swap1-swap16" id="swap1-swap16"></a>

Original [EVM](https://www.evm.codes/#90?fork=shanghai) instructions.

Is not available in Yul.

For EVMLA, see [EVM Legacy Assembly Translator](https://docs.zksync.io/zk-stack/components/compiler/specification/evmla-translator).

[The LLVM IR generator code](https://github.com/matter-labs/era-compiler-solidity/blob/main/src/evmla/assembly/instruction/stack.rs#L74).

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://validium.gitbook.io/docs/components/compiler/specification/instructions/evm/stack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
