Constant loading via literal pool
TechniqueA 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:
- 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. - Literal pool loading — placing the constant value in a memory location (the literal pool) and loading it with a PC-relative
ldrinstruction referencing a labeled.wordentry.
NEIGHBORHOOD
No graph connections found for this entity yet. It may appear in future ingestion runs.
explore full graph →RELATIONSHIPS
2 connectionsLiteral-pool constant loading is an ARM-specific idiom, indicating the technique targets ARM.
Loading constants either directly or via a literal pool yields alternative but equivalent sequences.
CITATIONS
1 sources1 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