From: Luke Kenneth Casson Leighton Date: Mon, 20 Jun 2022 17:42:26 +0000 (+0100) Subject: add absolute-signed-diff next to absolute-unsigned-diff X-Git-Tag: sv_maxu_works-initial~373 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca9acfa997a9e771e24937b6a7ee1e1e43ce06e8;p=openpower-isa.git add absolute-signed-diff next to absolute-unsigned-diff --- diff --git a/openpower/isa/av.mdwn b/openpower/isa/av.mdwn index 3c89b569..2498163c 100644 --- a/openpower/isa/av.mdwn +++ b/openpower/isa/av.mdwn @@ -86,6 +86,22 @@ Special Registers Altered: CR0 (if Rc=1) +# DRAFT Absolute Signed Difference + +X-Form + +* absds RT,RA,RB (Rc=0) +* absds. RT,RA,RB (Rc=1) + +Pseudo-code: + + if (RA) < (RB) then RT <- ¬(RA) + (RB) + 1 + else RT <- ¬(RB) + (RA) + 1 + +Special Registers Altered: + + CR0 (if Rc=1) + # DRAFT Absolute Unsigned Difference X-Form @@ -95,7 +111,7 @@ X-Form Pseudo-code: - if (RA) < (RB) then RT <- ¬(RA) + (RB) + 1 + if (RA)