---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 9 Edition"
java_version: 9
chapter: "Chapter 6. The Java Virtual Machine Instruction Set"
section: "6.5.dup_x1"
heading: "dup_x1"
parent: "6.5. Instructions"
source: https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-6.html#jvms-6.5.dup_x1
id: "6.5.dup_x1"
url: https://jvm.obfuscated.software/jvms/se9/6.5.dup_x1.html
raw: https://jvm.obfuscated.software/jvms/se9/6.5.dup_x1.md
---

# dup_x1

## Operation

Duplicate the top operand stack value and insert two values down

## Format

```
dup_x1
```

## Forms

*dup_x1* = 90 (0x5a)

## Operand Stack

..., *value2*, *value1* →

..., *value1*, *value2*, *value1*

## Description

Duplicate the top value on the operand stack and insert the duplicated value two values down in the operand stack.

The *dup_x1* instruction must not be used unless both *value1* and *value2* are values of a category 1 computational type ([§2.11.1](2.11.1.md)).
