mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 16:00:18 +02:00
InstCountCI: Support encoding expected Arm64 ASM in JSON
This will allow investigating the Arm64 directly next to the test, plus publicly linking directly to badly behaving tests. Perfect for nerdsniping implementations.
This commit is contained in:
1 parent
f95ef7092c
commit
9753ebdebc
2 files changed
+18
-9
No files matched your search
@@ -13,7 +13,11 @@ def update_performance_numbers(performance_json_path, performance_json, new_json
|
||||
if not key in performance_json["Instructions"]:
|
||||
logging.error("{} didn't exist in performance json file?".format(key))
|
||||
return 1
|
||||
performance_json["Instructions"][key]["ExpectedInstructionCount"] = items
|
||||
|
||||
if "ExpectedInstructionCount" in items:
|
||||
performance_json["Instructions"][key]["ExpectedInstructionCount"] = items["ExpectedInstructionCount"]
|
||||
if "ExpectedArm64ASM" in items:
|
||||
performance_json["Instructions"][key]["ExpectedArm64ASM"] = items["ExpectedArm64ASM"]
|
||||
|
||||
# Output to the original file.
|
||||
with open(performance_json_path, "w") as json_file:
|
||||
|
||||
Reference in new issue
Block a user