From 5f4ac3aa8b26743419685045c7cd4e83deb4c558 Mon Sep 17 00:00:00 2001 From: lkcl Date: Fri, 23 Jun 2023 00:33:02 +0100 Subject: [PATCH] --- openpower/sv/po9_encoding/discussion.mdwn | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/openpower/sv/po9_encoding/discussion.mdwn b/openpower/sv/po9_encoding/discussion.mdwn index c0688b9a5..76007f146 100644 --- a/openpower/sv/po9_encoding/discussion.mdwn +++ b/openpower/sv/po9_encoding/discussion.mdwn @@ -317,6 +317,28 @@ test. Only EXT000-063 is not by a "process of elimination" (if ... return True) else return 32 ``` +**Scalar**: (includes EXT0xx, EXT2xx and EXT3xx): + +|0-5| 6-29 |30 31|32-37 | 38-663 | Description | +|---|--------|-----|--------|--------|------------------| +|PO9| xxxx | x x | 010001 | //// | RESERVED | +|PO9| xxxx | x x | 000001 | //// | RESERVED | +|PO9| !ZERO | 1 1 | !PO9 | xxxx | SSingle:EXT232-263 | +|PO9| 0000 | 1 1 | !PO9 | xxxx | Scalar EXT232-263 | +|PO9| SVRM | 1 0 | !PO9 | xxxx | SVP64:EXT232-263 | +|PO9| 0000 | 0 1 | Defined Word-instruction | 32-bit EXT300-363 | +|PO9| !ZERO | 0 1 | Defined Word-instruction | SSingle:EXT000-063 | +|PO9| SVRM | 0 0 | Defined Word-instruction | SVP64:EXT000-063 | + +``` + if PO1 return True # EXT1xx is Scalar + if not PO9 return True # anything not PO9 is EXT0xx + if Word[6:29 ] = 0x000000 return True # EXT2xx and EXT3xx + if Word[32:37] = 0b010001 return False # double-PO9 Reserved + if Word[32:37] = 0b000001 return False # PO9-PO1 Reserved + return False # all else is SVP64/SSingle +``` + **EXT232-263:** ``` -- 2.30.2