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