BN.MULQACC arguments inconsistent in documentation and snippets in sw/otbn
https://github.com/lowRISC/opentitan/blob/aa8ed45826b570acf2b9716b9dc3895ced45325a/sw/otbn/code-snippets/modexp.S#L17
The BN.MULQACC instructions in this snippet are inconsistent with the current documentation, which gives the acceptable range of values for the acc_shift_imm argument as 0..3. This snippet appears to implement an instruction that takes the number of bits to shift the result by, rather than the number of quarter-words.
Nice catch, thanks! This is a bug in the documentation: the assembler follows the RISC-V assembler so things that are encoded with a shift get their "shifted" values in the assembly. I'll try to fix it today.
Note to self: Need to add the shift to ImmOperandType.markdown_doc in operand.py.
The linked PR should fix things, I think. The documentation will now look like this:
