add new swizzle table format
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 13 Aug 2019 08:52:51 +0000 (09:52 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 13 Aug 2019 08:52:51 +0000 (09:52 +0100)
simple_v_extension/specification/mv.x.rst
simple_v_extension/swizzle_table_format.mdwn [new file with mode: 0644]

index 02f6d6a8cc56f6d3ed2a6663b914faec9c6b267b..1c81b7ca249c833dbf0db9e7ae7fa39639a9fa96 100644 (file)
@@ -22,7 +22,7 @@ swizzle (only active on SV or P48/P64 when SUBVL!=0):
 +-----+-----+-----+-----+
 | 7:6 | 5:4 | 3:2 | 1:0 |
 +-----+-----+-----+-----+
-|   w |   y |   z |   z |
+|   w |   z |   y |   x |
 +-----+-----+-----+-----+
 
 ----
diff --git a/simple_v_extension/swizzle_table_format.mdwn b/simple_v_extension/swizzle_table_format.mdwn
new file mode 100644 (file)
index 0000000..d41521e
--- /dev/null
@@ -0,0 +1,14 @@
+Swizzle format:
+
+| 7:6 | 5:4 | 3:2 | 1:0 |
+| --- | --- | --- | --- |
+|   w |   z |   y |   x |
+
+16 bit format:
+
+| SwzCAM | (15..13) | (12..8)  | (7..0)|
+| ------ | -        | -        | ----- | 
+| 0      | rsvd0    | regidx0  | swiz0 |
+| 1      | rsvd1    | regidx1  | swiz1 |
+| 2      | rsvd2    | regidx2  | swiz2 |
+| 3      | rsvd3    | regidx3  | swiz3 |