A32ExpandImm_C

sail-arm's definition a32.sail

val A32ExpandImm_C : (bits(12), bits(1)) -> (bits(32), bits(1))

function A32ExpandImm_C (imm12, carry_in) = {
    carry_out : bits(1) = undefined;
    imm32 : bits(32) = undefined;
    let unrotated_value : bits(32) = ZeroExtend(imm12[7 .. 0], 32);
    (imm32, carry_out) = Shift_C(unrotated_value, SRType_ROR, 2 * UInt(imm12[11 .. 8]), carry_in);
    return((imm32, carry_out))
}

Used by


Made from ScarletNX's Sail at 166ad3910f80. sail-arm's definitions are Arm's ASL in Sail (BSD 3-Clause Clear, license); ScarletNX's fixups are GPL-3.0-or-later.