From 10ddc342b1fc075712668bb72463ec811d121949 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 28 Sep 2022 19:33:48 +0100 Subject: [PATCH] add double-sld pseudocode, first draft --- openpower/isa/svfixedarith.mdwn | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/openpower/isa/svfixedarith.mdwn b/openpower/isa/svfixedarith.mdwn index 7dfd4c55..b44c4dba 100644 --- a/openpower/isa/svfixedarith.mdwn +++ b/openpower/isa/svfixedarith.mdwn @@ -45,3 +45,26 @@ Pseudo-code: Special Registers Altered: None + +# [DRAFT] Twin (Quad) Left Shift Doubleword + +Z23-Form + +* dsld RT,RA,RB,sm (Rc=0) +* dsld. RT,RA,RB,sm (Rc=1) + +Pseudo-code: + + sh <- (RB) + src <- (RA) || (RT) + n <- sh[XLEN-7:XLEN-1] + r <- ROTL128(src, n) + if sh[XLEN-8] = 0 then + m <- MASK(0, XLEN*-1-n, XLEN*2) + else m <- [0]*XLEN*2 + r <- r & m + RA <- r[XLEN:XLEN*2-1] + +Special Registers Altered: + + CR0 (if Rc=1) -- 2.30.2