Skip to content

Commit

Permalink
Merge pull request #1167 from KwangSon/vector_bug
Browse files Browse the repository at this point in the history
Fix wrong parse script
  • Loading branch information
kito-cheng authored Dec 16, 2022
2 parents 29d02b7 + 7dec1e8 commit a4f97aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/march-to-cpu-opt
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ def get_vlen(ext_dict):
if ext == 'v':
vlen = max(vlen, 128)
elif (ext.startswith('zvl') and ext[-1] == 'b'):
zvlen = int(arch[3:-1])
zvlen = int(ext[3:-1])
vlen = max(vlen, zvlen)
elif ext.startswith("zve"):
zvelen = int(arch[3:-1])
zvelen = int(ext[3:-1])
vlen = max(vlen, zvelen)
return vlen

Expand Down

0 comments on commit a4f97aa

Please sign in to comment.