Skip to content

Commit 8fd15bd

Browse files
Fix vector type table rendering
* Table 1 renders incorrectly due to missing heading for column 4. Use same header as Table 2. * Delimit end of table so that Table 2 renders.
1 parent 60b1424 commit 8fd15bd

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

gen_vector_type_infos.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def get_note(sew, lmul, base_t, nf=1):
8181
print ("[cols=\"4,3,>3,>2\"]")
8282
print ("[width=80%]")
8383
print ("|===")
84-
print("| Internal Name | Type | Description")
84+
print ("| Internal Name | Type | Size (Bytes) | Alignment (Bytes)")
8585
print("")
8686

8787
for sew in SEW:
@@ -93,13 +93,16 @@ def get_note(sew, lmul, base_t, nf=1):
9393
mname = "__rvv_" + typename
9494
size = sizestr(lmul)
9595
print ("| %-22s | %-20s | %-18s | %d" %(mname, typename, size, sew/8))
96+
print ("|===")
97+
print ("")
9698

9799
print (".Type sizes and alignments for vector tuple types")
98100
print ("[cols=\"4,3,>3,>2\"]")
99101
print ("[width=80%]")
100102
print ("|===")
101103

102104
print ("| Internal Name | Type | Size (Bytes) | Alignment (Bytes)")
105+
print ("")
103106
for sew in SEW:
104107
for lmul in LMUL:
105108
for nf in NF:
@@ -110,3 +113,4 @@ def get_note(sew, lmul, base_t, nf=1):
110113
mname = "__rvv_" + typename
111114
size = sizestr(lmul, nf)
112115
print ("| %-22s | %-20s | %-18s | %d" %(mname, typename, size, sew/8))
116+
print ("|===")

vector_type_infos.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[cols="4,3,>3,>2"]
33
[width=80%]
44
|===
5-
| Internal Name | Type | Description
5+
| Internal Name | Type | Size (Bytes) | Alignment (Bytes)
66

77
| __rvv_vint8mf8_t | vint8mf8_t | (VLEN / 8) / 8 | 1
88
| __rvv_vuint8mf8_t | vuint8mf8_t | (VLEN / 8) / 8 | 1
@@ -88,11 +88,14 @@
8888
| __rvv_vint64m8_t | vint64m8_t | (VLEN / 8) * 8 | 8
8989
| __rvv_vuint64m8_t | vuint64m8_t | (VLEN / 8) * 8 | 8
9090
| __rvv_vfloat64m8_t | vfloat64m8_t | (VLEN / 8) * 8 | 8
91+
|===
92+
9193
.Type sizes and alignments for vector tuple types
9294
[cols="4,3,>3,>2"]
9395
[width=80%]
9496
|===
9597
| Internal Name | Type | Size (Bytes) | Alignment (Bytes)
98+
9699
| __rvv_vint8mf8x2_t | vint8mf8x2_t | (VLEN / 8) / 4 | 1
97100
| __rvv_vuint8mf8x2_t | vuint8mf8x2_t | (VLEN / 8) / 4 | 1
98101
| __rvv_vfloat8mf8x2_t | vfloat8mf8x2_t | (VLEN / 8) / 4 | 1
@@ -477,3 +480,4 @@
477480
| __rvv_vint64m4x2_t | vint64m4x2_t | (VLEN / 8) * 8 | 8
478481
| __rvv_vuint64m4x2_t | vuint64m4x2_t | (VLEN / 8) * 8 | 8
479482
| __rvv_vfloat64m4x2_t | vfloat64m4x2_t | (VLEN / 8) * 8 | 8
483+
|===

0 commit comments

Comments
 (0)