Revert unauthorized change to the specification without proper consultation
[libreriscv.git] / openpower / sv / svp64.mdwn
index 8bc7f784b815497345306f1472781cda888a26f4..c623c123a6b544bf01c863d822d36e0bd1c3fc63 100644 (file)
@@ -1194,15 +1194,13 @@ A pseudocode algorithm explains the relationship, for INT/FP (see
 
 ```
     if extra3_mode:
-        if EXTRA3[0]: # vector
-            return (RA << 2) | EXTRA3[1:2]
-        else:         # scalar
-            return (EXTRA3[1:2] << 5) | RA
-    else:  # EXTRA2 mode
-        if EXTRA2[0]: # vector
-            return (RA << 2) | (EXTRA2[1] << 1)
-        else:
-            return (EXTRA2[1] << 5) | RA
+        spec = EXTRA3
+    else:
+        spec = EXTRA2 << 1 # same as EXTRA3, shifted
+    if spec[0]: # vector
+         return (RA << 2) | spec[1:2]
+    else:         # scalar
+         return (spec[1:2] << 5) | RA
 ```
 
 Future versions may extend to 256 by shifting Vector numbering up.