Fix printing of floats

This commit is contained in:
Vincent Ehrmanntraut
2024-12-12 09:52:59 +01:00
parent d3baedd3b3
commit 70fcbc872c
2 changed files with 6 additions and 13 deletions

View File

@@ -286,9 +286,7 @@ void BaseInstruction::parse_operands(istream& s, int pos, int file_pos)
// instructions with 5 register operands
case PRINTFLOATPLAIN:
case PRINTFLOATPLAINB:
case APPLYSHUFFLE:
num_var_args = get_int(s);
get_vector(num_var_args, start, s);
get_vector(5, start, s);
break;
case INCINT:
r[0]=get_int(s);
@@ -322,14 +320,11 @@ void BaseInstruction::parse_operands(istream& s, int pos, int file_pos)
case RUN_TAPE:
case CONV2DS:
case MATMULS:
num_var_args = get_int(s);
get_vector(num_var_args, start, s);
break;
case APPLYSHUFFLE:
case MATMULSM:
num_var_args = get_int(s);
get_vector(num_var_args, start, s);
break;
// read from file, input is opcode num_args,
// start_file_posn (read), end_file_posn(write) var1, var2, ...
case READFILESHARE:

View File

@@ -152,15 +152,13 @@ def test_permute_matrix(timer_base: int, value_type=sint) -> None:
m2 = m2.reveal()
print_ln("Permuted m1:")
if value_type == sint:
for row in m1:
print_ln("%s", row)
for row in m1:
print_ln("%s", row)
test_permuted_matrix(m1, p1)
print_ln("Permuted m2:")
if value_type == sint:
for row in m2:
print_ln("%s", row)
for row in m2:
print_ln("%s", row)
test_permuted_matrix(m2, p2)
test_allocator()