From: lkcl Date: Mon, 18 Apr 2022 21:28:13 +0000 (+0100) Subject: (no commit message) X-Git-Tag: opf_rfc_ls005_v1~2713 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2766875f6f03a82324a2d9b7e12f6f92fe6da3d0;p=libreriscv.git --- diff --git a/openpower/sv/bitmanip/appendix.mdwn b/openpower/sv/bitmanip/appendix.mdwn index 69d33cbee..34078485d 100644 --- a/openpower/sv/bitmanip/appendix.mdwn +++ b/openpower/sv/bitmanip/appendix.mdwn @@ -176,13 +176,13 @@ These two combine as, simply: # assume VL=8, therefore RS starts at r8.v # q : r16 - # dividend: r20.v - # divisor : r28.v - # carry : r40 - li r17, 0 - sv.msubx r0.v, r16, r20.v, r28.v + # dividend: r17 + # divisor : r20.v + # carry : r18 + li r18, 0 + sv.msubx r0.v, r16, r17, r20.v # here, RS=RB+VL, therefore again RS starts at r8.v - sv.weirdsubx r0.v, r17, r0.v + sv.weirdsubx r0.v, r18, r0.v As a result, a big-integer subtract and multiply may be carried out in only 3 instructions, one of which is setting a scalar integer to