crypto-test.c: Don't print dead registers.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 27 Sep 2019 00:03:48 +0000 (01:03 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 27 Sep 2019 00:03:48 +0000 (01:03 +0100)
crypto-test.c

index e25fd91..4c7c2e3 100644 (file)
@@ -323,6 +323,7 @@ void check_test_output(struct test_state *state, const struct test *test)
        printf("failed test `%s'\n", test->name);
        for (def = test->regs; def->name; def++) {
            in = REG(in, def->i);
+           if (!(in->f&REGF_LIVE)) continue;
            if (def->i >= state->nrout) {
                printf("\t   input `%s' = ", def->name);
                def->ty->dump(stdout, &in->v);