From a3a2fb98d846f20ad14038da4c4ed00e4cc23bea Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 19 Jun 2022 20:34:30 +0100 Subject: [PATCH] add absadd (unsigned) DRAFT https://bugs.libre-soc.org/show_bug.cgi?id=863 --- openpower/isa/av.mdwn | 25 +++++++-- openpower/isatables/minor_22.csv | 1 + src/openpower/decoder/isa/caller.py | 5 ++ src/openpower/decoder/power_enums.py | 2 + src/openpower/sv/trans/svp64.py | 31 ++++------- src/openpower/test/bitmanip/av_cases.py | 70 +++++++++++++++++++++++++ 6 files changed, 110 insertions(+), 24 deletions(-) diff --git a/openpower/isa/av.mdwn b/openpower/isa/av.mdwn index 733369e3..f4aea8e7 100644 --- a/openpower/isa/av.mdwn +++ b/openpower/isa/av.mdwn @@ -70,8 +70,8 @@ Special Registers Altered: X-Form -* avgadd RT,RA,RB (Rc=0) -* avgadd. RT,RA,RB (Rc=1) +* avgadd RT,RA,RB (Rc=0) +* avgadd. RT,RA,RB (Rc=1) Pseudo-code: @@ -90,8 +90,8 @@ Special Registers Altered: X-Form -* absdu RT,RA,RB (Rc=0) -* absdu. RT,RA,RB (Rc=1) +* absdu RT,RA,RB (Rc=0) +* absdu. RT,RA,RB (Rc=1) Pseudo-code: @@ -101,3 +101,20 @@ Pseudo-code: Special Registers Altered: CR0 (if Rc=1) + +# DRAFT Absolute Accumulate Unsigned Difference + +X-Form + +* absaddu RT,RA,RB (Rc=0) +* absaddu. RT,RA,RB (Rc=1) + +Pseudo-code: + + if (RA)