From 2b829bd613fb4401add425286d85836990a86885 Mon Sep 17 00:00:00 2001 From: lkcl Date: Mon, 3 Oct 2022 12:52:32 +0100 Subject: [PATCH] --- openpower/sv/svp64/discussion.mdwn | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/openpower/sv/svp64/discussion.mdwn b/openpower/sv/svp64/discussion.mdwn index e86bc5b12..8358e701f 100644 --- a/openpower/sv/svp64/discussion.mdwn +++ b/openpower/sv/svp64/discussion.mdwn @@ -239,6 +239,24 @@ saturation mode is fine predicate-result should be fine as well (aside from change in predicate behaviour) +**LD/ST Immediate** + +[[sv/ldst]] + +First critical observation, RA.isvec is utilised to detect element-stride. + +``` +if RA.isvec: + svctx.ldstmode = indexed +elif els == 0: + svctx.ldstmode = unitstride +elif immediate != 0: + svctx.ldstmode = elementstride +``` + +thus it is actually legitimate to have scalar src *and* dest especially +with predicate masks. + ## answers to 4, loops/uses **REMAP** -- 2.30.2