Skip to content

Commit 3d49550

Browse files
committed
Fix variant extension handling
1 parent fec7a1e commit 3d49550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

riscvmodel/variant.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ def __init__(self, name: str, *, custext=None):
5858
for ext in match.group(4).split("_"):
5959
if ext[0] == "Z":
6060
self.extensions |= set(
61-
[ext] + Variant.stdextZ["Z" + ext[1:].lower()].implies)
61+
[ext[0]+ext[1:].lower()] + Variant.stdextZ["Z" + ext[1:].lower()].implies)
6262
elif ext[0] == "X":
6363
self.extensions |= set(
64-
[ext] + self.custext["X" + ext[1:].lower()].implies)
64+
[ext[0]+ext[1:].lower()] + self.custext["X" + ext[1:].lower()].implies)
6565

6666
def __str__(self):
6767
return self.name

0 commit comments

Comments
 (0)