Increase maximum instruction name to 128-bytes

Some long name instructions are going beyond 32-bytes. Obviously not
hurting to encode a few additional bytes.
This commit is contained in:
Ryan Houdek committed 2023-08-13 12:32:14 -07:00
1 parent ef3887ca4f
commit cbfea75037
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -140,7 +140,7 @@ def parse_json_data(json_data, output_binary_path):
# TestInfo Tests[NumTests];
# };
# struct TestInfo {
# char InstName[32];
# char InstName[128];
# uint64_t Optimal;
# int64_t ExpectedInstructionCount;
# uint64_t CodeSize;
@@ -157,7 +157,7 @@ def parse_json_data(json_data, output_binary_path):
# Add each test
for key, item in TestDataMap.items():
MemData += struct.pack('32s', item.Name.encode("ascii"))
MemData += struct.pack('128s', item.Name.encode("ascii"))
MemData += struct.pack('Q', item.Optimal)
MemData += struct.pack('q', item.ExpectedInstructionCount)
MemData += struct.pack('Q', len(item.Code))