Partial test file reading fix

This commit is contained in:
dingusdev 2021-10-15 06:28:11 -07:00
parent 7ce94a6ab5
commit 7d7a4b453f
3 changed files with 2032 additions and 2032 deletions

View File

@ -438,7 +438,7 @@ if __name__ == "__main__":
checkstring = '' checkstring = ''
pos += 1 pos += 1
if ("frD" in checkstring): if ("frD" in checkstring):
out_file.write(",frD=" + line[pos+4:pos+20]) out_file.write(",frD=0x" + line[pos+4:pos+20])
checkstring = '' checkstring = ''
if ("frA" in checkstring): #sloppy temp code if ("frA" in checkstring): #sloppy temp code
check2 = line[pos+1:pos+10] check2 = line[pos+1:pos+10]

File diff suppressed because it is too large Load Diff

View File

@ -198,7 +198,7 @@ static void read_test_float_data() {
for (i = 2; i < tokens.size(); i++) { for (i = 2; i < tokens.size(); i++) {
if (tokens[i].rfind("frD=", 0) == 0) { if (tokens[i].rfind("frD=", 0) == 0) {
dfp_dest = stoul(tokens[i].substr(4), NULL, 16); dfp_dest = stoull(tokens[i].substr(4), NULL, 16);
} else if (tokens[i].rfind("frA=", 0) == 0) { } else if (tokens[i].rfind("frA=", 0) == 0) {
dfp_src1 = stod(tokens[i].substr(4), NULL); dfp_src1 = stod(tokens[i].substr(4), NULL);
} else if (tokens[i].rfind("frB=", 0) == 0) { } else if (tokens[i].rfind("frB=", 0) == 0) {