macro_rules! encode_i_imm { ($n:expr) => { ... }; }
Encode and integer as a bitmask for an I-type immediate.