From 277bc926bfbdd40f76e7654602cfda6297879b4a Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Thu, 14 Dec 2023 12:20:58 +0800 Subject: [PATCH] Fix vr in instr --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 194e1197..938af5a4 100644 --- a/main.py +++ b/main.py @@ -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(".", "_")