From 1e2b5ecd5d09cdee77014649f5b836edfb6da051 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sun, 13 Aug 2023 04:29:07 -0700 Subject: [PATCH] InstCountParser: Allow the ability to skip instructions --- Scripts/InstructionCountParser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Scripts/InstructionCountParser.py b/Scripts/InstructionCountParser.py index ed50d3591..335a7f582 100755 --- a/Scripts/InstructionCountParser.py +++ b/Scripts/InstructionCountParser.py @@ -92,6 +92,10 @@ def parse_json_data(json_data, output_binary_path): if items["Optimal"].upper() == "YES": Optimal = 1 + if ("Skip" in items): + if items["Skip"].upper() == "YES": + continue + TestName = base64.b64encode(key.encode("ascii")).decode("ascii") tmp_asm = "/tmp/{}.asm".format(TestName) tmp_asm_out = "/tmp/{}.asm.o".format(TestName)