Skip to main content

loadf

Constant loadf 

Source
pub const loadf: &str = "loadf";
Expand description

loadf O1, O2

bits(64) address = X[O2];
V[O1]<31:0> = Mem[address, 4];

§Scratch registers

An address needs folding when one memory operand cannot encode it, so the backend computes it into a scratch register first. On AArch64 that is an index whose scale is neither 1 nor the access size, an index together with an offset, an offset outside both the scaled unsigned 12-bit and the unscaled ±256 forms, or an absolute address. On RISC-V 64 it is any index, an offset outside ±2 KiB, or an absolute address. x86-64 never folds.

targetclobberswhen
x86-64-
AArch64x16address needs folding
RISC-V 64x31address needs folding (loadv/storev: either 8-byte half)
RISC-V 64f31storev through an address that needs folding