(no commit message)
[libreriscv.git] / simple_v_extension / swizzle_table_format.mdwn
1 Swizzle format:
2
3 | 7:6 | 5:4 | 3:2 | 1:0 |
4 | --- | --- | --- | --- |
5 | w | z | y | x |
6
7 Unsigned consts:
8
9 | (1..0) | type |
10 | ------ | ------ |
11 | 0 | 0x00000 |
12 | 1 | LSB Hi (0x00..001) |
13 | 2 | MSB Hi (0x10..000) |
14 | 3 | 0xfff...ff |
15
16 Signed consts:
17
18 | (1..0) | type |
19 | ------ | ------ |
20 | 0 | 0x00000 |
21 | 1 | LSB Hi (0x00..001) |
22 | 2 | MSB Hi (0x10..000) |
23 | 3 | 0x7ff...ff |
24
25 FP consts:
26
27 | (1..0) | type |
28 | ------ | ------ |
29 | 0 | 0.0 |
30 | 1 | 1.0 |
31 | 2 | 0.5 |
32 | 3 | pi |
33
34 Type:
35
36 | (2..0) | type |
37 | ------ | ------ |
38 | 0 | xyzw |
39 | 1 | consts |
40 | 2-7 | rsvd |
41
42 16 bit format:
43
44 | SwzCAM | (15..13) | (12..8) | (7..0)|
45 | ------ | - | - | ----- |
46 | 0 | type0 | regidx0 | swiz0 |
47 | 1 | type1 | regidx1 | swiz1 |
48 | 2 | type2 | regidx2 | swiz2 |
49 | 3 | type3 | regidx3 | swiz3 |