lor 0x81
Bitwise ORs two longs on top of the stack; pushes the result.
- Opcode
0x81(129)- Family
- Arithmetic and bitwise
- Operands
- none
- Length
- 1 byte
- Operand stack
…, value1 (long), value2 (long) → …, result (long)- Can throw
- nothing at run time (beyond linking errors)
What it does
a | b on two longs: pops b, then a, and pushes the result.
How often javac uses it
In JDK 25.0.5's java.base module, lor appears 397 times in 78 of its 7,391 classes: 0.02% of all instructions, the 128th most common of 194 opcodes in use. Some of the methods that use it: java.io.ObjectStreamClass.computeDefaultSUID, java.lang.AbstractStringBuilder.mix, java.lang.Double.toHexString, java.lang.FdLibm.__LO.
Example
From the sample classes, compiled by javac 25 with -g. Each Java line is shown above the bytecode it compiled to; lor is highlighted.
static long longs(long a, long b) in Tour, compiled by javac 25… 24 instructions before
Related instructions
ior Bitwise ORs two ints on top of the stack; pushes the result.
Specification: JVMS §6.5, lor (Java SE 25).