---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 14 Edition"
java_version: 14
chapter: "Chapter 4. The class File Format"
section: "4.10.1.9.ireturn"
heading: "ireturn"
parent: "4.10.1.9. Type Checking Instructions"
source: https://docs.oracle.com/javase/specs/jvms/se14/html/jvms-4.html#jvms-4.10.1.9.ireturn
id: "4.10.1.9.ireturn"
url: https://jvm.obfuscated.software/jvms/se14/4.10.1.9.ireturn.html
raw: https://jvm.obfuscated.software/jvms/se14/4.10.1.9.ireturn.md
---

# ireturn

An *ireturn* instruction is type safe if the enclosing method has a declared return type of `int`, and one can validly pop a type matching `int` off the incoming operand stack.

```
instructionIsTypeSafe(ireturn, Environment, _Offset, StackFrame,
                      afterGoto, ExceptionStackFrame) :-
    thisMethodReturnType(Environment, int),
    canPop(StackFrame, [int], _PoppedStackFrame),
    exceptionStackFrame(StackFrame, ExceptionStackFrame).
```
