From 2766875f6f03a82324a2d9b7e12f6f92fe6da3d0 Mon Sep 17 00:00:00 2001 From: lkcl Date: Mon, 18 Apr 2022 22:28:13 +0100 Subject: [PATCH] --- openpower/sv/bitmanip/appendix.mdwn | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -- 2.30.2