Skip to content

Commit

Permalink
Fix vr in instr
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Dec 14, 2023
1 parent 6b74959 commit 277bc92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def instruction(intrinsic, instr, desc):
file_name = "x" + file_name
instr = "x" + instr
intrinsic = intrinsic.replace("m128", "m256").replace("_lsx_", "_lasx_x")
# replace vr to xr in instr
instr = re.sub("\\bvr\\b", "xr", instr)
if not os.path.exists(f"code/{file_name}.h"):
file_name = instr.split(" ")[0].replace(".", "_")

Expand Down

0 comments on commit 277bc92

Please sign in to comment.