aboutsummaryrefslogtreecommitdiff
path: root/parse.py
diff options
context:
space:
mode:
authorNeel Gala <neelgala@incoresemi.com>2023-01-14 13:34:05 +0530
committerNeel Gala <neelgala@incoresemi.com>2023-01-14 13:34:05 +0530
commit05c08f12f8a5f4bfab176e70f0999f8bfbf27699 (patch)
tree1d8e803618b0b09af7d38082eef10e51f482f187 /parse.py
parent4daf1ab88b4e821cca64b76217411f5c6cd4c250 (diff)
downloadriscv-opcodes-05c08f12f8a5f4bfab176e70f0999f8bfbf27699.zip
riscv-opcodes-05c08f12f8a5f4bfab176e70f0999f8bfbf27699.tar.gz
riscv-opcodes-05c08f12f8a5f4bfab176e70f0999f8bfbf27699.tar.bz2
fix regex fpr pseudo op lookup to ensure that we don't hit on substrings
Diffstat (limited to 'parse.py')
-rwxr-xr-xparse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.py b/parse.py
index a4a437c..4d7bab6 100755
--- a/parse.py
+++ b/parse.py
@@ -290,7 +290,7 @@ def create_inst_dict(file_filter, include_pseudo=False, include_pseudo_ops=[]):
# extension. Else throw error.
found = False
for oline in open(ext_file):
- if not re.findall(f'^\s*{orig_inst}',oline):
+ if not re.findall(f'^\s*{orig_inst}\s+',oline):
continue
else:
found = True