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

# lor, lrem

A *lor* instruction is type safe iff the equivalent *ladd* instruction is type safe.

```
instructionHasEquivalentTypeRule(lor, ladd).
```

An *lrem* instruction is type safe iff the equivalent *ladd* instruction is type safe.

```
instructionHasEquivalentTypeRule(lrem, ladd).
```
