pub struct Bump {
pub from: &'static str,
pub into: &'static str,
pub load: &'static str,
pub store: &'static str,
}Expand description
One arithmetic instruction against a constant that could work on memory, and the load and the store that would be the rest of the run.
Update with the register source replaced by an immediate, and a field shorter for it. There
is no commutes, because there is nothing to swap: the constant is on the instruction and
cannot be anywhere else, so the memory is always the left source and every row reads the same
way. Subtraction is in the table without a note attached for the same reason. subl $1, (%rax)
takes one away from the place, which is the run this matches and the only one it could be.
Fields§
§from: &'static strThe arithmetic as the selector wrote it, on a register and a constant.
into: &'static strThe same arithmetic reading memory and leaving its answer there.
load: &'static strThe load that put the memory’s word in a register.
store: &'static strThe store that put the answer back.