fstore_3 0x46

Pops a float into local variable 3.

Opcode
0x46 (70)
Family
Stores
Operands
none
Length
1 byte
Operand stack
…, value (float) → …
Can throw
nothing at run time (beyond linking errors)
Spec name
fstore_<n>

What it does

Pops a float into local variable 3.

Slots 0 to 3 each have a one-byte instruction; the general fstore takes a one-byte slot number, and wide extends that to two bytes.

How often javac uses it

In JDK 25.0.5's java.base module, fstore_3 appears 19 times in 7 of its 7,391 classes: <0.01% of all instructions, the 180th most common of 194 opcodes in use. Some of the methods that use it: java.lang.Float.floatToFloat16, java.util.DualPivotQuicksort.heapSort, java.util.HashMap.readObject, java.util.HashSet.readObject.

Related instructions

fload_3 Pushes the float in local variable 3.fstore Pops a float into local variable (operand).wide Makes the next instruction take a two-byte local index (and a two-byte iinc constant).

Specification: JVMS §6.5, fstore_<n> (Java SE 25).