add swizzle pseudocode example
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 13 Aug 2019 11:02:01 +0000 (12:02 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 13 Aug 2019 11:02:01 +0000 (12:02 +0100)
simple_v_extension/abridged_spec.mdwn

index 0bab079ddfaddade5977165149225cd9d7334285..69c7af8c8a4ca60b47fb4daba5d3aa8e112b1c4a 100644 (file)
@@ -238,10 +238,10 @@ if this occurs.
 Pseudocode when SUBVL=4 and swizzle is set on rd:
 
     # decode the swizzle table entry for rd
-    x = swizzle[0:1]
-    y = swizzle[2:3]
-    z = swizzle[4:5]
-    w = swizzle[6:7]
+    x = swizzle[0:1] # sub-element 0
+    y = swizzle[2:3] # sub-element 1
+    z = swizzle[4:5] # sub-element 2
+    w = swizzle[6:7] # sub-element 3
 
     # loop on VL: SUBVL loop is unrolled
     for (i in 0; i < VL; i++)