Skip to content

Commit a4f97aa

Browse files
authored
Merge pull request #1167 from KwangSon/vector_bug
Fix wrong parse script
2 parents 29d02b7 + 7dec1e8 commit a4f97aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/march-to-cpu-opt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ def get_vlen(ext_dict):
103103
if ext == 'v':
104104
vlen = max(vlen, 128)
105105
elif (ext.startswith('zvl') and ext[-1] == 'b'):
106-
zvlen = int(arch[3:-1])
106+
zvlen = int(ext[3:-1])
107107
vlen = max(vlen, zvlen)
108108
elif ext.startswith("zve"):
109-
zvelen = int(arch[3:-1])
109+
zvelen = int(ext[3:-1])
110110
vlen = max(vlen, zvelen)
111111
return vlen
112112

0 commit comments

Comments
 (0)