Skip to content
STIMSMITH

Constant loading via literal pool

Technique

A technique in ARM where constants can be loaded into registers either directly via immediate instructions (e.g., mvn) or indirectly from a literal pool in memory (e.g., ldr with a label pointing to a .word entry), producing equivalent results. This is an example of equivalent instruction sequences.

First seen 9/21/2026
Last seen 9/21/2026
Evidence 1 chunks
Wiki v1

WIKI

Overview

In the ARM instruction set architecture, constants can be loaded into registers using two broadly equivalent approaches:

  1. Direct immediate loading — using instructions that encode the constant (or a transform of it) as an immediate operand, such as mvn (move-not), mov, or arithmetic instructions with immediates.
  2. Literal pool loading — placing the constant value in a memory location (the literal pool) and loading it with a PC-relative ldr instruction referencing a labeled .word entry.
READ FULL ARTICLE →

NEIGHBORHOOD

No graph connections found for this entity yet. It may appear in future ingestion runs.

explore full graph →

RELATIONSHIPS

2 connections
ARM targets ISA → 86% 1e
Literal-pool constant loading is an ARM-specific idiom, indicating the technique targets ARM.
Equivalent instruction sequences part of → 84% 1e
Loading constants either directly or via a literal pool yields alternative but equivalent sequences.

CITATIONS

1 sources
1 citations — click to collapse
[1] Constants can be loaded directly or from literal pool; e.g., mvn r3, #-2147483648 is equivalent to ldr r3, .L8; .L8: .word 2147483647. Guaranteed Guess: A Language Modeling Approach for CISC-to-RISC Transpilation with Testing Guarantees