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 2023-08-13 12:30:45 -07:00
parent ef3887ca4f
commit cbfea75037
2 changed files with 3 additions and 3 deletions

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))

View File

@ -236,7 +236,7 @@ void AssertHandler(char const *Message) {
}
struct TestInfo {
char TestInst[32];
char TestInst[128];
uint64_t Optimal;
int64_t ExpectedInstructionCount;
uint64_t CodeSize;